@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0c0808; /* Deep Marvel Charcoal-Red */
    --card-bg: rgba(20, 15, 15, 0.6);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f9fafb;
    --text-secondary: #e0a3a3;
    --accent: #e23636; /* Marvel Red */
    --accent-hover: #ff5252;
    --accent-glow: rgba(226, 54, 54, 0.4);
    --focus-ring: rgba(226, 54, 54, 0.5);
    --gradient-text: linear-gradient(135deg, #e23636 0%, #ff8080 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-dark);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(12, 8, 8, 0) 50%, rgba(0, 0, 0, 0.18) 50%);
    background-size: 100% 3px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    z-index: -1;
    pointer-events: none;
}

/* Glowing Background Blobs */
.glowing-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    z-index: -2;
    pointer-events: none;
    transition: all 1s ease;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(226, 54, 54, 0.75) 0%, rgba(185, 28, 28, 0.15) 100%);
    animation: floatBlob1 28s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.65) 0%, rgba(180, 83, 9, 0.1) 100%);
    animation: floatBlob2 32s infinite alternate ease-in-out;
}

.blob-3 {
    top: 35%;
    left: 25%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.55) 0%, rgba(153, 27, 27, 0.08) 100%);
    animation: floatBlob3 24s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(8vw, 12vh) scale(1.1) rotate(120deg);
    }
    100% {
        transform: translate(-4vw, 4vh) scale(0.95) rotate(240deg);
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1.05) rotate(0deg);
    }
    50% {
        transform: translate(-12vw, -8vh) scale(0.9) rotate(-120deg);
    }
    100% {
        transform: translate(4vw, 8vh) scale(1.15) rotate(-240deg);
    }
}

@keyframes floatBlob3 {
    0% {
        transform: translate(0, 0) scale(0.95) rotate(0deg);
    }
    50% {
        transform: translate(-4vw, 12vh) scale(1.15) rotate(180deg);
    }
    100% {
        transform: translate(12vw, -4vh) scale(0.9) rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 54, 54, 0.5);
}

.container {
    width: 100%;
    max-width: 1300px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    padding: 1.2rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.main-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00f0ff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.45), 0 0 30px rgba(0, 240, 255, 0.15);
    margin-top: 1rem;
    margin-bottom: 0rem;
    z-index: 10;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 2;
}

label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

input[type="date"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.8rem 1.4rem;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.7) sepia(100) hue-rotate(200deg);
    cursor: pointer;
    transition: filter 0.3s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1);
}

input[type="date"]:focus,
input[type="date"]:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring), inset 0 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.save-indicator {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ff5252;
    background: rgba(226, 54, 54, 0.1);
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    border: 1px solid rgba(226, 54, 54, 0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.15);
    z-index: 2;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Lectures Header Bar */
.lectures-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lectures-header h2 {
    color: #fff;
    font-size: 1.4rem;
    font-family: monospace;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.lecture-card {
    background: linear-gradient(145deg, rgba(20, 10, 10, 0.45) 0%, rgba(10, 5, 5, 0.45) 100%);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;

    /* Reveal Animation setup */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lecture-card:nth-child(1) {
    animation-delay: 0.1s;
}

.lecture-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lecture-card:nth-child(3) {
    animation-delay: 0.3s;
}

.lecture-card:nth-child(4) {
    animation-delay: 0.4s;
}

.lecture-card:nth-child(5) {
    animation-delay: 0.5s;
}

.lecture-card:nth-child(6) {
    animation-delay: 0.6s;
}

.lecture-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1.5px;
    background: radial-gradient(130px circle at var(--x, 50%) var(--y, 50%), rgba(226, 54, 54, 0.6) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.15s ease;
}

.lecture-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(226, 54, 54, 0.25);
    background: linear-gradient(145deg, rgba(35, 20, 20, 0.65) 0%, rgba(20, 10, 10, 0.65) 100%);
}

.lecture-card h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
}

.lecture-card h2::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-hover), 0 0 5px #fff;
}

textarea {
    flex-grow: 1;
    min-height: 140px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 1.4rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.8;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

textarea:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--focus-ring);
}

textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 300;
}

/* File Upload & Attachments */
.file-upload {
    margin-top: 0.5rem;
    z-index: 2;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    justify-content: center;
}

.upload-btn:hover {
    background: rgba(226, 54, 54, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 54, 54, 0.1);
}

.upload-btn input[type="file"] {
    display: none;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.25rem;
    z-index: 2;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: rgba(226, 54, 54, 0.1);
    border-color: rgba(226, 54, 54, 0.3);
    transform: translateX(6px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.file-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-grow: 1;
    overflow: hidden;
}

.file-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
}

.file-link:hover .file-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.file-link:hover {
    color: var(--accent-hover);
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    font-weight: 300;
}

.delete-btn {
    background: transparent;
    border: none;
    color: rgba(239, 68, 68, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    line-height: 1;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0.4rem;
}

.delete-btn:hover {
    opacity: 1;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.2) rotate(90deg);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    .date-picker-wrapper {
        justify-content: space-between;
    }
}

/* ----------------------------------------------------
   Lock Screen Styles
---------------------------------------------------- */
.lock-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lock-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(226, 54, 54, 0.15);
    animation: fadeInUp 0.5s ease forwards;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.lock-icon {
    font-size: 3.5rem;
    margin-bottom: -0.5rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.lock-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lock-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.password-wrapper {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.password-wrapper input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.password-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--focus-ring);
    background: rgba(0, 0, 0, 0.5);
}

.password-wrapper button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 1rem;
    width: 3.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-wrapper button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.lock-error {
    color: #ef4444 !important;
    font-size: 0.85rem !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 1rem;
}

.lock-error.show {
    opacity: 1;
}

.password-wrapper button.cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.password-wrapper button.cancel-btn:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.edit-mode-btn {
    background: rgba(226, 54, 54, 0.1);
    color: var(--accent);
    border: 1px solid rgba(226, 54, 54, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(226, 54, 54, 0.1);
}

.edit-mode-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 54, 54, 0.3);
}

.edit-mode-btn.unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.edit-mode-btn.unlocked:hover {
    background: #10b981;
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Edit Mode Visibility Rules */
body:not(.edit-mode) .file-upload {
    display: none;
}

body:not(.edit-mode) .delete-btn {
    display: none;
}

body:not(.edit-mode) textarea {
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
    cursor: default;
}

/* ----------------------------------------------------
   Preview Modal Styles
---------------------------------------------------- */
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(12, 8, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: linear-gradient(145deg, rgba(20, 15, 15, 0.95) 0%, rgba(10, 5, 5, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* extra top padding for close btn */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(226, 54, 54, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preview-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.preview-close-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

#previewContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#previewContainer img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.8rem;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#previewContainer iframe {
    width: 80vw;
    height: 80vh;
    border: none;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hologram News Bar with CRT TV boot animation */
.hologram-news-bar {
    position: fixed;
    bottom: 45px;
    left: 50px;
    width: 280px;
    height: 90px;
    background: rgba(12, 8, 8, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: monospace;
    color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 8px rgba(0, 240, 255, 0.05);
    z-index: 1; /* Pushed to the background behind main container */
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    
    /* CRT TV bootup animation */
    animation: crtTurnOn 0.6s cubic-bezier(0.25, 1, 0.3, 1) 0.5s both;
}

.news-header {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffa726; /* Stark Gold accent */
    border-bottom: 1px dashed rgba(0, 240, 255, 0.2);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.news-content {
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    height: 52px;
    overflow: hidden;
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.5);
}

@keyframes crtTurnOn {
    0% {
        transform: scale(0.01, 0.001);
        filter: brightness(20) contrast(2);
        opacity: 0;
    }
    45% {
        transform: scale(1, 0.002);
        filter: brightness(10) contrast(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1, 1);
        filter: brightness(1) contrast(1);
        opacity: 1;
    }
}

/* Horizontal Date Strip styling (Scaled up) */
.date-strip-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 5, 5, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.7rem 1.4rem;
    border-radius: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.03);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-week-btn {
    background: transparent;
    border: none;
    color: #00f0ff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.nav-week-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

.date-strip {
    display: flex;
    gap: 0.7rem;
}

.day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 82px;
    box-sizing: border-box;
}

.day-pill .day-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.8;
}

.day-pill .day-date {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.day-pill .day-month {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.day-pill:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.day-pill.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.18), inset 0 0 5px rgba(0, 240, 255, 0.1);
    color: #00f0ff;
}

.day-pill.active .day-date {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.day-pill.active .day-name,
.day-pill.active .day-month {
    opacity: 1;
}

/* Hidden native datepicker but accessible for JS showPicker() */
.hidden-datepicker {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Calendar Trigger Button (Scaled up) */
.calendar-trigger-btn {
    background: transparent;
    border: none;
    color: #00f0ff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
    border-left: 1px dashed rgba(0, 240, 255, 0.25);
    border-radius: 0;
    padding-left: 0.9rem;
    margin-left: 0.5rem;
}

.calendar-trigger-btn:hover {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* General highlight for any attachments */
.lecture-card.has-attachments {
    border-color: rgba(0, 240, 255, 0.2) !important;
}

/* Amber/Gold highlight for media/photos */
.lecture-card.has-photos {
    border-color: rgba(255, 167, 38, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.15), var(--card-shadow) !important;
    background: linear-gradient(145deg, rgba(30, 20, 10, 0.5) 0%, rgba(15, 10, 5, 0.5) 100%) !important;
}
.lecture-card.has-photos::before {
    content: '📸 Media Attached';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.4);
    font-size: 0.65rem;
    font-family: monospace;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    animation: pulsePhotoIndicator 1.8s infinite alternate ease-in-out;
}

/* Cyan highlight for documents (if no photos) */
.lecture-card.has-pdfs:not(.has-photos) {
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), var(--card-shadow) !important;
    background: linear-gradient(145deg, rgba(10, 25, 30, 0.5) 0%, rgba(5, 10, 15, 0.5) 100%) !important;
}
.lecture-card.has-pdfs:not(.has-photos)::before {
    content: '📕 Document Active';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.35);
    font-size: 0.65rem;
    font-family: monospace;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    animation: pulsePdfIndicator 1.8s infinite alternate ease-in-out;
}

/* TV screen sliding date transition swipe animation (Scaled up offset) */
@keyframes slideInCardRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInCardLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes pulsePhotoIndicator {
    from {
        opacity: 0.85;
        box-shadow: 0 0 4px rgba(255, 167, 38, 0.15);
    }
    to {
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 167, 38, 0.45);
    }
}

@keyframes pulsePdfIndicator {
    from {
        opacity: 0.85;
        box-shadow: 0 0 4px rgba(0, 240, 255, 0.15);
    }
    to {
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
    }
}

/* Day Pill indicator dots for photos and PDFs */
.day-pill {
    position: relative;
}

.day-pill.has-photos-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffa726;
    box-shadow: 0 0 8px #ffa726;
    animation: pulseDot 1.5s infinite alternate ease-in-out;
}

.day-pill.has-pdfs-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: pulseDot 1.5s infinite alternate ease-in-out;
}

@keyframes pulseDot {
    from { opacity: 0.5; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

/* Card Options block inside cards (Mood & Next Plan) */
.card-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.card-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-options span {
    color: var(--text-secondary);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.next-plan-select, .lect-mood-select {
    background: rgba(10, 5, 5, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 0.5rem;
    padding: 2px 6px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.next-plan-select:focus, .lect-mood-select:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Day Mood Selection in Header */
.day-mood-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(10, 5, 5, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.9rem;
    border-radius: 1.2rem;
    backdrop-filter: blur(5px);
}

.mood-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mood-emojis {
    display: flex;
    gap: 0.5rem;
}

.mood-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.45;
    padding: 0;
}

.mood-btn:hover {
    transform: scale(1.25);
    opacity: 0.85;
}

.mood-btn.selected {
    opacity: 1;
    transform: scale(1.3);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

/* Sliding Briefing Panel */
.briefing-panel {
    position: fixed;
    top: 0;
    right: -420px; /* Initially hidden */
    width: 380px;
    height: 100vh;
    background: rgba(8, 12, 16, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.briefing-panel.open {
    right: 0;
}

.close-briefing-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-briefing-btn:hover {
    color: #ff3366;
}

.briefing-header h3 {
    color: #00f0ff;
    font-family: monospace;
    font-size: 1.15rem;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.briefing-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: monospace;
}

.briefing-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-right: 0.5rem;
}

/* Custom scrollbar for briefing content */
.briefing-content::-webkit-scrollbar {
    width: 4px;
}
.briefing-content::-webkit-scrollbar-track {
    background: transparent;
}
.briefing-content::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
}

.briefing-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 0.8rem;
    padding: 1rem;
}

.briefing-section-title {
    color: #00f0ff;
    font-size: 0.75rem;
    font-family: monospace;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.15);
    padding-bottom: 4px;
}

.briefing-item {
    margin-bottom: 0.8rem;
}

.briefing-item:last-child {
    margin-bottom: 0;
}

.briefing-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.briefing-item-status {
    font-size: 0.75rem;
    font-family: monospace;
}

.briefing-item-notes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 0.5rem;
    border-left: 2px solid rgba(0, 240, 255, 0.3);
}

.briefing-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.briefing-stat-val {
    color: #fff;
    font-weight: bold;
    font-family: monospace;
}

/* Floating briefing toggle button */
.open-briefing-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(8, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    border-radius: 50px;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
    z-index: 990;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.open-briefing-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
}