/**
 * Video Vault Viewer Premium Stylesheet (Dark Theme)
 */

:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.1);
}

:root[data-theme="dark"] {
    --bg-main: #090d16;
    --bg-header: rgba(13, 20, 35, 0.75);
    --card-bg: rgba(17, 24, 39, 0.55);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.35);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
}

:root {
    --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Ambient Locked View */
.ambient-locked-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    animation: fadeInClock 1.5s ease;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes fadeInClock {
    from { opacity: 0; }
    to { opacity: 1; }
}

.clock-display {
    font-size: clamp(64px, 12vw, 110px);
    font-weight: 300;
    color: var(--text-primary) !important;
    letter-spacing: -2px;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.date-display {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 400;
    color: var(--text-secondary) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Header */
.app-header {
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-svg {
    color: var(--accent);
}

.header-logo h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Control Buttons */
.control-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.control-btn svg {
    flex-shrink: 0;
}

.control-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-btn {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent);
}

.admin-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: #a5b4fc;
}

.logout-btn {
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #fca5a5;
}

/* Main Content Area */
.app-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Search and Filters */
.search-filter-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-form {
    width: 100%;
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

html[dir="rtl"] .search-icon {
    left: auto;
    right: 18px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.25s ease;
}

html[dir="rtl"] .search-input {
    padding: 14px 48px 14px 20px;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    background: var(--bg-header);
}

.search-input:focus + .search-icon {
    color: var(--accent);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-chip:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.video-card.playing-highlight {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent), 0 8px 24px var(--accent-glow) !important;
}

.card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #030712;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    background: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.video-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.video-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 4px;
}

.video-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Empty State & Loader */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
}

.empty-icon {
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 16px;
}

.loading-shimmer {
    text-align: center;
    padding: 100px 0;
    color: var(--text-secondary);
    font-size: 16px;
    letter-spacing: 0.5px;
    animation: pulseLoader 1.5s infinite ease-in-out;
}

@keyframes pulseLoader {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* App Content Layout & Transition to Theater View */
.app-content {
    display: grid;
    grid-template-columns: 1fr 0fr;
    gap: 0;
    transition: grid-template-columns 0.6s cubic-bezier(0.16, 1, 0.3, 1), gap 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: start;
}

.video-explorer {
    width: 100%;
    min-width: 0; /* prevent layout overflow */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.theater-panel {
    width: 100%;
    min-width: 0; /* prevent layout overflow */
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

/* Active Theater View State */
.app-content.theater-active {
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

.app-content.theater-active .theater-panel {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.app-content.theater-active .theater-panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}


/* Sidebar grid behavior */
.app-content.theater-active .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.app-content.theater-active .welcome-banner {
    padding: 20px;
}
.app-content.theater-active .welcome-banner h2 {
    font-size: 20px;
}
.app-content.theater-active .welcome-banner p {
    font-size: 13px;
}
.app-content.theater-active .banner-stats {
    display: none;
}

/* Highlight active video card */
.video-card.playing-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(99, 102, 241, 0.08);
}

/* Theater elements design */
.theater-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.theater-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.theater-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#theaterVideoTitle {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.theater-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-theater-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-theater-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Description block */
.theater-description-block {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    animation: fadeInUp 0.4s ease forwards;
}

:root[data-theme="light"] .theater-description-block {
    background: rgba(255, 255, 255, 0.5);
}

.theater-description-block h3 {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 8px;
}

.theater-description-block p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap; /* Preserve spaces/newlines */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    outline: none;
    display: block;
}

/* RTL Adjustments */
html[dir="rtl"] .logo-icon-svg {
    order: 2;
}
html[dir="rtl"] .header-logo h1 {
    order: 1;
}
html[dir="rtl"] .close-overlay-btn {
    order: 1;
}
html[dir="rtl"] .overlay-header h2 {
    order: 2;
    text-align: right;
}

/* Welcome Banner Styling */
.welcome-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.banner-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: var(--text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.banner-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Custom Player Styles */
.custom-player {
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.custom-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    direction: ltr;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    z-index: 10;
    transform: translateY(0);
}

.player-controls.hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.player-timeline-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: height 0.2s;
}

.player-timeline-container:hover {
    height: 8px;
}

.player-timeline-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
}

.player-timeline-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.player-timeline-container:hover .player-timeline-handle {
    display: block;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.player-btn:active {
    transform: scale(0.95);
}

.player-time-display {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    gap: 6px;
    user-select: none;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.volume-container:hover .volume-slider,
.volume-slider:focus {
    width: 70px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.speed-container {
    position: relative;
}

.speed-btn {
    font-size: 12px;
    font-weight: 600;
    width: auto;
    padding: 0 8px;
}

.speed-menu {
    position: absolute;
    bottom: 42px;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    min-width: 90px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.speed-option {
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    color: #ffffff;
    text-align: center;
    transition: all 0.2s;
}

.speed-option:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.speed-option.data-active {
    color: var(--accent);
    font-weight: 700;
}

.player-overlay-icon {
    position: absolute;
    background: rgba(13, 20, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    pointer-events: none;
    z-index: 15;
    animation: popPlayerIcon 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popPlayerIcon {
    from { opacity: 0; transform: scale(0.7); }
    40% { opacity: 1; transform: scale(1.1); }
    to { opacity: 0; transform: scale(1); }
}

/* Mobile Responsiveness for Theater layout */
@media (max-width: 900px) {
    .app-content {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .app-content.theater-active {
        display: flex;
        flex-direction: column-reverse; /* Player on top, explorer underneath */
    }
    
    .app-content.theater-active .video-explorer {
        width: 100%;
    }
    
    .app-content.theater-active .theater-panel {
        width: 100%;
        transform: translateY(-20px);
    }
}


/* ============================================================
   RESUME PLAYBACK TOAST
   ============================================================ */
.resume-toast {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 40px;
    padding: 8px 14px 8px 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px var(--accent-hover), 0 2px 8px var(--bg-header);
    z-index: 30;
    white-space: nowrap;
    pointer-events: all;
    opacity: 0;
}

.resume-toast.resume-toast-show {
    animation: resumeToastEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.resume-toast.resume-toast-hide {
    animation: resumeToastExit 0.35s ease forwards;
}

@keyframes resumeToastEntrance {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0px)    scale(1);    }
}

@keyframes resumeToastExit {
    from { opacity: 1; transform: translateX(-50%) translateY(0px) scale(1); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.97); }
}

.resume-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-glow);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

.resume-toast-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.resume-start-over-btn {
    background: var(--accent-glow);
    border: 1px solid var(--accent-glow);
    border-radius: 20px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.resume-start-over-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-glow);
    transform: scale(1.04);
}

.resume-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.resume-toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-header);
}

/* ── Notification Banner ─────────────────────────────────────── */
.notification-banner {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    white-space: nowrap;
    pointer-events: none;
    transition: none;
}
.notification-banner.success {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}
.notification-banner.error {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
.notification-banner.info {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent);
}
.notification-banner.notif-show {
    animation: notifSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notification-banner.notif-hide {
    animation: notifSlideOut 0.35s ease-in forwards;
}
@keyframes notifSlideIn {
    from { top: -80px; opacity: 0; }
    to   { top: 18px;  opacity: 1; }
}
@keyframes notifSlideOut {
    from { top: 18px;  opacity: 1; }
    to   { top: -80px; opacity: 0; }
}


/* Modals & Overlays */
.edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.edit-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.edit-modal-content {
    width: 90%;
    max-width: 450px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.edit-overlay.active .edit-modal-content {
    transform: scale(1);
}

.edit-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.save-btn {
    background: var(--accent);
    color: white;
}

.save-btn:hover {
    background: var(--accent-hover);
}

.cancel-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}



/* Progress Cards */
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Button generic */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}



/* ── Modal buttons layout ───────────────────────────────────── */
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}