:root {
    --primary-color: #1a5f45;
    /* Dark Green for branding */
    --accent-color: #22c55e;
    /* Bright Green for text highlights */
    --text-color: #0f172a;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --nav-bg: #ffffff;
    --border-color: #e2e8f0;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --bg-color: #0a0b14; /* Azul profundo Noctua */
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --nav-bg: #0d0f1a;
    --card-bg: #111827;
}

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Desktop: Top Positioning */
@media (min-width: 1024px) {
    .navbar {
        top: 0;
        bottom: auto;
        padding: 1rem 4rem;
        border-bottom: 1px solid #f3f4f6;
    }

    body.dark-mode .navbar {
        border-bottom-color: #1e293b;
    }
}

/* Mobile: Bottom Positioning */
@media (max-width: 1023px) {
    .navbar {
        top: auto;
        bottom: 0;
        padding: 0.5rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        border-top: 1px solid #f3f4f6;
    }

    body.dark-mode .navbar {
        border-top-color: #1e293b;
    }

    .nav-links {
        display: flex !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        width: 100%;
        justify-content: space-around;
        padding: 0.25rem 0;
    }

    .nav-link {
        font-size: 0.7rem !important;
        padding: 0.25rem !important;
        font-weight: 700 !important;
    }

    .user-nav-container {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .user-nav-container {
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}

/* Dropdown Recursos */
.nav-item-recursos {
    list-style: none;
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--nav-bg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-item-recursos:hover .nav-dropdown-content {
    display: flex;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(26, 95, 69, 0.05); /* Tint of primary green */
    color: var(--primary-color);
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-dropdown-content {
    background-color: var(--nav-bg);
    border-color: #1e293b;
}

@media (min-width: 1024px) {
    .hidden-on-mobile {
        display: flex !important;
    }

    .hidden-on-desktop {
        display: none !important;
    }
}

/* Mobile Top Nav */
.mobile-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
}

.mobile-brand img {
    height: 32px;
    width: auto;
}

.mobile-nav-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #64748b;
}

.mobile-user-trigger,
.mobile-logout-trigger,
.mobile-theme-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-user-trigger {
    background: #f0fdf4;
    color: #16a34a;
}

.mobile-nav-tools a,
.mobile-theme-trigger {
    color: #94a3b8;
}






@media (max-width: 1023px) {

    /* Timeline / Plan de Estudio Mobile */
    .timeline-wrapper {
        padding: 1rem 0.5rem !important;
    }

    .timeline-item {
        margin-bottom: 2.5rem !important;
        padding-left: 2.5rem !important;
        /* Space for line and dots */
        position: relative;
    }

    /* Vertical line for mobile timeline */
    .timeline-wrapper::before {
        content: '';
        position: absolute;
        left: 1rem;
        top: 1rem;
        bottom: 1rem;
        width: 2px;
        background: #e2e8f0;
        z-index: 0;
    }

    .step-circle {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 10;
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .plan-card {

        margin-left: 0 !important;

        padding: 1rem !important;

        border-radius: 1.25rem !important;

        width: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0.75rem;

    }

    .plan-status-badge-container {
        margin-bottom: 1rem;
    }

    .study-action-wrapper {
        margin-left: 0 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    .btn-study-action {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem !important;
    }

    .status-capsule {
        width: 100%;
        justify-content: center;
    }

    .plan-week-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Page Titles Mobile */
    .page-title {
        font-size: 1.5rem !important;
    }
    .page-subtitle {
        font-size: 0.95rem !important;
    }

    /* Mis Clases Cards Mobile */
    .class-card {
        margin-bottom: 1.5rem !important;
        border-radius: 1rem !important;
        overflow: hidden;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    }

    .class-card-header {
        height: 8px;
        width: 100%;
        margin-bottom: 1rem;
    }

    .class-info-item {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-action-mobile {
        width: 100%;
        margin-top: 1rem;
        padding: 0.85rem !important;
        border-radius: 0.85rem !important;
        font-weight: 700 !important;
    }

    .nav-links {
        display: none;
        /* Hidden on mobile in favor of bottom nav */
    }

    .user-greeting-text {
        display: none;
        /* Hide welcome text on mobile to save space */
    }



    .main-content {
        padding-top: 60px !important; /* Exactly navbar height */
        padding-bottom: 80px !important;
        /* Extra space for bottom nav */
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
        padding: 0 2rem;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    /* Stats Section Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        padding: 0 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Footer Mobile */
    .site-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 3rem 1.5rem 6rem 1.5rem;
    }
}

/* Dark Mode Overrides */
body.dark-mode .mobile-top-nav {
    background: #000;
    border-color: #1e293b;
}

body.dark-mode .mobile-brand span {
    color: #f1f5f9;
}




body.dark-mode .nav-link {
    color: #cbd5e1;
}

body.dark-mode .nav-link:hover {
    color: var(--accent-color);
    background-color: #1e293b;
    /* Solid Slate for hover */
}

body.dark-mode .hero-title {
    color: #f8fafc;
}

body.dark-mode .btn-outline {
    background-color: transparent;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .btn-outline:hover {
    background-color: #1e293b;
    border-color: #475569;
}

body.dark-mode .badge {
    background-color: #065f46;
    /* Solid Dark Green */
    color: #6ee7b7;
}

body.dark-mode .stat-number {
    color: #f1f5f9;
}

body.dark-mode .stats-section {
    border-top-color: transparent;
}

body.dark-mode .site-footer {
    background-color: #1a5f45;
    /* Matches Empezar Ahora button */
    border-top-color: transparent;
    /* Remove visible white line */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

/* Standard Page Container */
.page-container {
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    .page-container {
        padding: 1rem !important;
    }
}

/* Navbar Styles - Already handled above with responsive rules */

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
    /* Pushes links to the right */
    margin-right: 2rem;
    /* Spacing between links and tool icon */
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    /* Added padding */
    border-radius: 0.5rem;
    /* Rounded corners */
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(26, 95, 69, 0.05);
    /* Light hover background */
}

.nav-tools {
    display: flex;
    align-items: center;
    color: #64748b;
}

.btn-register {
    padding: 0.6rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    color: #1a5f45;
    border: 2px solid #1a5f45;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-register:hover {
    background-color: #1a5f45;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 95, 69, 0.15);
}

/* User Profile Navbar Redesign */
.user-nav-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2px;
}

.user-info-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned with the username */
    line-height: 1.2;
}

.user-greeting-text {
    font-size: 0.875rem;
    color: #64748b;
    /* Grey "Hola," */
}

.user-greeting-text strong {
    color: #0f172a;
    /* Dark bold username */
    font-weight: 600;
}

.admin-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    background: #eefdf5;
    color: #166534;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-top: 2px;
    width: fit-content;
}

.user-avatar-wrapper {
    width: 34px;
    height: 34px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    border: none;
    transition: all 0.2s ease;
}

.nav-user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s;
    text-decoration: none;
}

.nav-user-dropdown-trigger:hover {
    background: #f8fafc;
}

.nav-user-dropdown-trigger:hover .user-avatar-wrapper {
    transform: scale(1.05);
}

/* Dark Mode Overrides for Navbar User */
body.dark-mode .user-greeting-text {
    color: #94a3b8;
}

body.dark-mode .user-greeting-text strong {
    color: #f1f5f9;
}

body.dark-mode .admin-badge {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

body.dark-mode .user-avatar-wrapper {
    background: #064e3b;
    color: #34d399;
}

body.dark-mode .nav-user-dropdown-trigger {
    color: #94a3b8;
}

body.dark-mode .nav-user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logout-link-nav {
    margin-left: 0.5rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
}

.logout-link-nav:hover {
    color: #ef4444;
}

/* Logout Confirmation Bubble */
.logout-confirm-bubble {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 240px;
    display: none;
    /* Controlled by JS */
    animation: slideInUp 0.2s ease-out;
}

.logout-confirm-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.logout-confirm-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
}

.logout-confirm-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    display: block;
    line-height: 1.4;
}

.logout-confirm-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-confirm-logout {
    flex: 1;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-logout-confirm {
    background: #ef4444;
    color: white;
}

.btn-logout-confirm:hover {
    background: #dc2626;
}

.btn-logout-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-logout-cancel:hover {
    background: #e2e8f0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Logout Bubble */
body.dark-mode .logout-confirm-bubble {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logout-confirm-bubble::before {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .logout-confirm-title {
    color: #f1f5f9;
}

body.dark-mode .logout-confirm-text {
    color: #94a3b8;
}

body.dark-mode .btn-logout-cancel {
    background: #334155;
    color: #cbd5e1;
}

body.dark-mode .btn-logout-cancel:hover {
    background: #475569;
}

/* Landing Page Styles */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem 1rem;
}

@media (max-width: 1023px) {
    .hero-content {
        padding: 2rem 1rem 3rem 1rem !important; /* Reduced top padding from 6rem to 2rem */
    }
}

.badge {
    display: inline-block;
    background-color: #dcfce7;
    /* Green-100 */
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.dot-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-color); /* Usar variable global */
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: #16a34a;
    /* Green-600 */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #1a5f45;
    /* Dark Green */
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(26, 95, 69, 0.2);
}

.btn-primary:hover {
    background-color: #134e38;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--nav-bg);
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    /* Large numbers */
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-item {
    padding: 1rem;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* ===== Countdown Timer ===== */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    pointer-events: auto;
}

.countdown-item {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.countdown-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.12em;
}

/* Active / highlighted item (seconds) */
.countdown-item.seconds-item {
    border-color: #d4a017;
}

.seconds-value {
    color: #f5c518 !important;
}

.seconds-label {
    color: #f5c518 !important;
}

/* Dark mode adjustments */
body.dark-mode .countdown-item {
    background: #0f172a;
    border-color: #1e293b;
}

/* Responsive */
@media (max-width: 600px) {
    .countdown-container {
        gap: 0.6rem;
    }

    .countdown-item {
        padding: 1rem 1rem;
        min-width: 70px;
        border-radius: 0.75rem;
    }

    .countdown-value {
        font-size: 1.9rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }
}

@media (max-width: 768px) {

    /* Timeline / Plan de Estudio Mobile */
    .timeline-wrapper {
        padding: 1rem 0.5rem !important;
    }

    .timeline-item {
        margin-bottom: 2.5rem !important;
        padding-left: 2.5rem !important;
        /* Space for line and dots */
        position: relative;
    }

    /* Vertical line for mobile timeline */
    .timeline-wrapper::before {
        content: '';
        position: absolute;
        left: 1rem;
        top: 1rem;
        bottom: 1rem;
        width: 2px;
        background: #e2e8f0;
        z-index: 0;
    }

    .step-circle {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 10;
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .plan-card {

        margin-left: 0 !important;

        padding: 1rem !important;

        border-radius: 1.25rem !important;

        width: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0.75rem;

    }

    .plan-status-badge-container {
        margin-bottom: 1rem;
    }

    .study-action-wrapper {
        margin-left: 0 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    .btn-study-action {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem !important;
    }

    .status-capsule {
        width: 100%;
        justify-content: center;
    }

    .plan-week-title {
        font-size: 1.1rem !important;
    }

    /* Mis Clases Cards Mobile */
    .class-card {
        margin-bottom: 1.5rem !important;
        border-radius: 1rem !important;
        overflow: hidden;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    }

    .class-card-header {
        height: 8px;
        width: 100%;
        margin-bottom: 1rem;
    }

    .class-info-item {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-action-mobile {
        width: 100%;
        margin-top: 1rem;
        padding: 0.85rem !important;
        border-radius: 0.85rem !important;
        font-weight: 700 !important;
    }


    .user-greeting-text {
        display: none;
        /* Hide welcome text on mobile to save space */
    }

    .bottom-nav {
        display: none !important;
    }


    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
        padding: 0 2rem;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    /* Stats Section Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        padding: 0 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Footer Mobile */
    .site-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 3rem 1.5rem 6rem 1.5rem;
    }
}

/* Footer */
.site-footer {
    background-color: #f9fafb;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* Main Content Wrapper */
.main-content {
    min-height: calc(100vh - 140px);
    width: 100%;
    padding-top: 80px;
    /* Space for top fixed navbar */
}

@media (max-width: 1023px) {
    .main-content {
        padding-top: 20px;
        padding-bottom: 90px;
        /* Space for bottom fixed navbar */
    }
}

/* Questions Page Styles */
.page-header {
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
}

.questions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
    background: transparent !important;
}

.search-input-wrapper {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    /* Keep it rounded for aesthetics */
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 69, 0.1);
}

.filter-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-chip {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.filter-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(26, 95, 69, 0.2);
}

/* Dark Mode Overrides */
body.dark-mode .questions-toolbar {
    background-color: transparent !important;
    border: none;
}

body.dark-mode .search-input,
body.dark-mode .filter-chip {
    border-color: #334155;
    background-color: #0f172a;
}

/* Question Cards */
.questions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-card {
    background-color: var(--bg-color);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
    /* Highlight strip */
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Border Accents */
.border-left-yellow {
    border-left-color: #facc15;
}

.border-left-blue {
    border-left-color: #60a5fa;
}

.border-left-red {
    border-left-color: #f87171;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bg-yellow-100 {
    background-color: #fef9c3;
    color: #854d0e;
}

.bg-blue-100 {
    background-color: #dbeafe;
    color: #1e40af;
}

.bg-red-100 {
    background-color: #fee2e2;
    color: #991b1b;
}

.question-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.bookmark-icon {
    color: #9ca3af;
    cursor: pointer;
}

.bookmark-icon:hover {
    color: var(--text-color);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.question-preview {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.ver-respuesta-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ver-respuesta-link:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dark Mode Overrides for New Components */
body.dark-mode .question-card,
body.dark-mode .search-input,
body.dark-mode .page-btn,
body.dark-mode .filter-chip {
    border-color: #334155;
    background-color: #1e293b;
    /* Darker Surface */
}

body.dark-mode .page-title,
body.dark-mode .question-text {
    color: #f1f5f9;
}

/* Simulacros Page Styles */
.simulacros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.simulacro-card {
    background-color: var(--bg-color);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-top: 6px solid transparent;
    /* Thick top accent */
    display: flex;
    flex-direction: column;
}

.simulacro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card Accents: Top Border */
.border-top-gold {
    border-top-color: #d97706;
}

.border-top-brown {
    border-top-color: #8d6e63;
}

.border-top-green {
    border-top-color: #15803d;
}

.simulacro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge-soft {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* Pill */
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-green-100 {
    background-color: #dcfce7;
    color: #166534;
}

.bg-purple-100 {
    background-color: #f3e8ff;
    color: #6b21a8;
}

/* Reusing yellow/blue from questions if needed, or defining new ones */
.bg-blue-light {
    background-color: #e0f2fe;
    color: #0369a1;
}

.bg-red-light {
    background-color: #ffe4e6;
    color: #be123c;
}

.simulacro-icon {
    color: #9ca3af;
}

.simulacro-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.simulacro-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.btn-full {
    width: 100%;
    margin-top: auto;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    /* Match image slightly */
    letter-spacing: 0.025em;
}

/* Dark Mode Overrides for Simulacros */
body.dark-mode .simulacro-card {
    border-color: #334155;
    background-color: #1e293b;
}

/* Study Plan Page Styles */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    /* Space for the circles */
}

/* Vertical Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 2.75rem;
    /* Centers line with circles */
    top: 2rem;
    bottom: 4rem;
    width: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

body.dark-mode .timeline-wrapper::before {
    background-color: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    z-index: 1;
    /* Above line */
}

.step-circle {
    flex-shrink: 0;
    width: 3.5rem;
    /* approx 56px */
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    color: white;
    box-shadow: 0 0 0 5px var(--bg-color);
    /* fake spacing from line */
}

body.dark-mode .step-circle {
    box-shadow: 0 0 0 5px var(--bg-color);
}

.circle-green {
    background-color: #22c55e;
}

.circle-dark {
    background-color: #1a5f45;
}

.circle-gray {
    background-color: #e5e7eb;
    color: #9ca3af;
}

body.dark-mode .circle-gray {
    background-color: #334155;
    color: #64748b;
}

.plan-card {
    flex-grow: 1;
    background-color: var(--bg-color);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    /* More rounded */
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-active {
    border: 2px solid #16a34a;
    /* Green Highlight */
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.1);
}

.plan-content {
    flex-grow: 1;
}

.plan-week-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plan-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-completed {
    color: #16a34a;
}

.status-progress {
    color: #ca8a04;
}

/* yellow-600 */
.status-pending {
    color: #9ca3af;
}

.progress-track {
    width: 200px;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100vh;
    background-color: #eab308;
    /* Yellow bar */
    border-radius: 9999px;
}

.btn-continue {
    background-color: #1a5f45;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-continue:hover {
    background-color: #134e38;
}

.lock-icon {
    color: #cbd5e1;
}

/* Study Plan Refinements */
.plan-status-badge-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.status-capsule {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
}

.status-en-progreso {
    background: #fefce8;
    color: #d97706;
}

.status-completado {
    background: #f0fdf4;
    color: #16a34a;
}

.status-pendiente {
    background: #f8fafc;
    color: #94a3b8;
}

.plan-progress-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.plan-progress-fill {
    height: 100vh;
    background: #eab308;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.btn-priority {
    background: #1a5f45 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(26, 95, 69, 0.1) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-priority:hover {
    background: #134e38 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px -2px rgba(26, 95, 69, 0.2) !important;
}

.btn-secondary-review {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
}

.lock-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.plan-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 32px;
    border: 2px dashed #e2e8f0;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #cbd5e1;
}

.empty-icon-wrapper+p {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 700;
}

/* Dark Mode Overrides for Study Plan */
body.dark-mode .plan-card {
    background-color: #111827;
    border-color: #1e293b;
}

body.dark-mode .plan-week-title {
    color: #f1f5f9;
}

body.dark-mode .status-en-progreso {
    background: rgba(202, 138, 4, 0.15);
    color: #fbbf24;
}

body.dark-mode .status-completado {
    background: rgba(16, 185, 129, 0.15);
    color: #4ade80;
}

body.dark-mode .status-pendiente {
    background: #1e293b;
    color: #64748b;
}

body.dark-mode .plan-progress-track {
    background: #1e293b;
}

body.dark-mode .lock-icon-wrapper {
    background: #1e293b;
}

body.dark-mode .btn-secondary-review {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* Dashboard Premium Styles */
.dashboard-container {
    padding: 3rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f8fafc;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.highlight-green {
    color: #22c55e;
    font-weight: 700;
}

.btn-continue-study {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #00e676;
    /* Vibrant Green */
    color: #000;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 230, 118, 0.3);
}

.btn-continue-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 230, 118, 0.4);
}

/* Stats Row */
.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card-premium {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-soft {
    background: #eff6ff;
}

.bg-orange-soft {
    background: #fffbeb;
}

.bg-red-soft {
    background: #fef2f2;
}

.stat-label-v2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value-group {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.stat-value-v2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-trend {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.trend-up {
    color: #22c55e;
    background: #f0fdf4;
}

.stat-subtext {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Main Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #f1f5f9;
}

.card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title-v2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.dropdown-placeholder {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.chart-value-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chart-main-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
}

.chart-trend-text {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Activity Items */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-green-pill {
    background: #dcfce7;
    color: #166534;
}

.bg-yellow-pill {
    background: #fef9c3;
    color: #854d0e;
}

.bg-orange-pill {
    background: #ffedd5;
    color: #9a3412;
}

.activity-details {
    flex-grow: 1;
}

.activity-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.activity-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

.activity-score {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Subject Progress Bars */
.subject-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subject-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.subject-name {
    font-weight: 700;
    color: #475569;
}

.subject-percent {
    font-weight: 800;
    color: #1e293b;
}

.progress-bar-v2 {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill-v2 {
    height: 100vh;
    border-radius: 999px;
}

.bg-vibrant-green {
    background: #00e676;
}

.bg-vibrant-brown {
    background: #8d6e63;
}

.bg-vibrant-yellow {
    background: #fbc02d;
}

.bg-vibrant-darkgreen {
    background: #2e7d32;
}

/* Event Items */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 1rem;
}

.event-date-box {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-month {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ef4444;
}

.event-day {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.event-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
}

.event-time {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-add-reminder {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-add-reminder:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Chart SVG Styling */
.line-chart-svg {
    width: 100%;
    height: 200px;
    overflow: visible;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0 0;
    color: #94a3b8;
    font-size: 0.875rem;
    border-top: 1px dashed #f1f5f9;
}

/* Dark Mode Overrides for Dashboard */
body.dark-mode .dashboard-container {
    background-color: #0f172a;
}

body.dark-mode .welcome-title {
    color: #f1f5f9;
}

body.dark-mode .dashboard-card,
body.dark-mode .stat-card-premium {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .card-title-v2,
body.dark-mode .stat-value-v2,
body.dark-mode .chart-main-value,
body.dark-mode .activity-name,
body.dark-mode .subject-percent,
body.dark-mode .event-name {
    color: #f1f5f9;
}

body.dark-mode .stat-label-v2,
body.dark-mode .welcome-subtitle {
    color: #94a3b8;
}

body.dark-mode .dropdown-placeholder,
body.dark-mode .event-item,
body.dark-mode .event-date-box {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .activity-item,
body.dark-mode .progress-bar-v2 {
    border-color: #334155;
    background: #0f172a;
}

body.dark-mode .subject-name {
    color: #cbd5e1;
}

/* Custom Admin Dashboard Premium Styles */
.admin-premium-container {
    padding: 3rem 6rem;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #f9fafb;
    min-height: calc(100vh - 80px);
}

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.admin-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.admin-page-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.btn-config-v2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-config-v2:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Admin Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-label-v3 {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.stat-value-v3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-icon-v3 {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-pale {
    background: #eff6ff;
}

.bg-green-pale {
    background: #f0fdf4;
}

.bg-yellow-pale {
    background: #fffbeb;
}

.bg-orange-pale {
    background: #fff7ed;
}

/* Admin Modules Grid */
.admin-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-module-card {
    background: white;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.module-header {
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    border-bottom: 1px solid #f8fafc;
}

.module-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-blue-tint {
    background: #eff6ff;
}

.bg-green-tint {
    background: #f0fdf4;
}

.bg-yellow-tint {
    background: #fffbeb;
}

.module-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.module-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

.module-body {
    padding: 1rem 1.75rem;
    flex-grow: 1;
}

.module-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
    transition: transform 0.2s;
}

.module-link:last-child {
    border: none;
}

.module-link:not(.no-click):hover {
    transform: translateX(4px);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
}

.link-sub {
    font-size: 0.8rem;
    color: #94a3b8;
}

.btn-add-mini {
    padding: 0.4rem 0.75rem;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-add-mini:hover {
    background: #dcfce7;
}

.module-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #f8fafc;
    text-align: center;
}

.btn-module-footer {
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.text-blue {
    color: #2563eb;
}

.text-green {
    color: #16a34a;
}

.text-red {
    color: #dc2626;
}

/* Empty State */
.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    margin-bottom: 1rem;
}

.empty-text {
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.empty-subtext {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Bottom Site Settings Card */
.admin-site-settings-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.site-settings-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-icon-box {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-settings-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.site-settings-desc {
    font-size: 0.9rem;
    color: #94a3b8;
}

.site-settings-right {
    display: flex;
    gap: 1rem;
}

.btn-view-site {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
}

.btn-configure-black {
    padding: 0.75rem 2rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Dark Mode Overrides for Admin Premium */
body.dark-mode .admin-premium-container {
    background-color: #000000;
}

body.dark-mode .admin-page-title {
    color: #f1f5f9;
}

body.dark-mode .admin-stat-card,
body.dark-mode .admin-module-card,
body.dark-mode .admin-site-settings-card,
body.dark-mode .btn-config-v2,
body.dark-mode .btn-view-site,
body.dark-mode .site-icon-box {
    background: #111827 !important;
    border-color: #1f2937 !important;
}

body.dark-mode .module-title,
body.dark-mode .stat-value-v3,
body.dark-mode .site-settings-title,
body.dark-mode .link-label {
    color: #f1f5f9 !important;
}

body.dark-mode .module-header,
body.dark-mode .module-footer,
body.dark-mode .module-link {
    border-color: #1f2937 !important;
}

body.dark-mode .btn-configure-black {
    background: #334155;
}

body.dark-mode .stat-icon-v3 {
    opacity: 0.8;
}

body.dark-mode .module-icon-box {
    opacity: 0.9;
}

/* ==========================================================================
   User Details Premium Page
   ========================================================================== */

.admin-breadcrumb-wrapper {
    margin-bottom: 1.5rem;
}

.admin-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumb-sep {
    color: #cbd5e1;
}

.user-details-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Sidebar Profile Card */
.user-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-main-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-large {
    width: 110px;
    height: 110px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-dot-large {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
}

.profile-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.profile-role-text {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.profile-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.quick-stat-item {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #f1f5f9;
}

.q-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.q-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.q-stat-value.text-green {
    color: #00E08F;
}

.q-stat-value.text-orange {
    color: #FF9F00;
}

/* Account Info List */
.profile-info-list {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.info-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.info-item-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.info-item-v2:last-child {
    margin-bottom: 0;
}

.info-label-v2 {
    font-size: 0.8rem;
    color: #64748b;
}

.info-value-v2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.badge-status-v2 {
    width: fit-content;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot-large.bg-active {
    background: #00E08F;
    box-shadow: 0 0 0 4px white;
}

body.dark-mode .status-dot-large.bg-active {
    box-shadow: 0 0 0 4px #111827;
}

.bg-active-tint {
    background: #f0fdf4;
    color: #16a34a;
}

/* Main Content Section Cards */
.details-section-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-text-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* Forms in Details */
.details-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-v2.full-width {
    grid-column: span 2;
}

.premium-select-wrapper {
    position: relative;
    width: 100%;
}

.form-select-premium {
    width: 100%;
    padding: 0.85rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-select-premium:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-select-premium:hover {
    border-color: #cbd5e1;
}

.select-icon-v2 {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

.form-label-v2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.form-input-v2,
.form-select-v2,
.form-textarea-v2 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    outline: none;
}

.form-input-v2:focus,
.form-select-v2:focus,
.form-textarea-v2:focus {
    border-color: #3b82f6;
    background: white;
}

.form-textarea-v2 {
    min-height: 100px;
    resize: vertical;
}

.form-input-v2[readonly] {
    cursor: default;
}

.form-actions-row {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-save-changes {
    background: #00E08F;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 224, 143, 0.3);
}

.btn-save-changes:hover {
    background: #00ca81;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 224, 143, 0.4);
}

/* Performance Stats */
.stats-progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats-progress-grid .details-section-card {
    margin-bottom: 0;
}

.performance-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.perf-total-box {
    display: flex;
    flex-direction: column;
}

.perf-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

.perf-label {
    font-size: 0.95rem;
    color: #64748b;
}

.perf-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #475569;
}

.progress-bar-v2 {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100vh;
    border-radius: 10px;
}

.bg-grey {
    background: #cbd5e1;
}

/* Weeks Progress */
.weeks-visual-progress {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weeks-summary-text {
    font-size: 1.1rem;
    color: #64748b;
}

.weeks-summary-text strong {
    font-size: 2.25rem;
    color: #1e293b;
    margin-right: 0.25rem;
}

.weeks-grid-v2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.week-box {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #94a3b8;
    gap: 2px;
}

.week-box span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
}

.week-box.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #22c55e;
}

.week-box.completed span {
    color: #15803d;
}

.week-box.in-progress {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #d97706;
}

.week-box.in-progress span {
    color: #b45309;
}

.weeks-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.bg-gold {
    background: #f59e0b;
}

/* Recent Activity List */
.activity-list-v2 {
    display: flex;
    flex-direction: column;
}

.activity-item-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item-v2:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-name-v2 {
    font-size: 1rem;
    font-weight: 650;
    color: #1e293b;
}

.activity-meta-v2 {
    font-size: 0.85rem;
    color: #94a3b8;
}

.activity-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.score-box-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.score-label-v2 {
    font-size: 0.75rem;
    color: #94a3b8;
}

.score-value-v2 {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* Header Action Buttons Specifc */
.btn-reset-password {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-password:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-delete-user {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-user:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.btn-view-mini {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-mini:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* User Details Dark Mode */
body.dark-mode .breadcrumb-item {
    color: #94a3b8;
}

body.dark-mode .breadcrumb-item.active {
    color: #f8fafc;
}

body.dark-mode .breadcrumb-sep {
    color: #475569;
}

body.dark-mode .profile-main-card,
body.dark-mode .profile-info-list,
body.dark-mode .details-section-card {
    background: #111827;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid #1f2937;
}

body.dark-mode .profile-avatar-large {
    background: #1f2937;
    color: #f8fafc;
}

body.dark-mode .status-dot-large {
    border-color: #111827;
}

body.dark-mode .profile-name-large {
    color: #f8fafc;
}

body.dark-mode .profile-role-text {
    color: #94a3b8;
}

body.dark-mode .quick-stat-item {
    background: #1f2937;
}

body.dark-mode .info-list-title {
    color: #f8fafc;
}

body.dark-mode .info-value-v2 {
    color: #e2e8f0;
}

body.dark-mode .section-title-v2 {
    color: #f8fafc;
}

body.dark-mode .form-label-v2 {
    color: #cbd5e1;
}

body.dark-mode .form-input-v2,
body.dark-mode .form-select-v2,
body.dark-mode .form-textarea-v2 {
    background: #1f2937;
    border-color: #374151;
    color: #f8fafc;
}

body.dark-mode .perf-number {
    color: #f8fafc;
}

body.dark-mode .progress-bar-v2 {
    background: #1f2937;
}

body.dark-mode .weeks-summary-text strong {
    color: #f8fafc;
}

body.dark-mode .week-box {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .week-box.completed {
    background: #064e3b33;
    border-color: #065f46;
    color: #34d399;
}

body.dark-mode .week-box.completed span {
    color: #6ee7b7;
}

body.dark-mode .week-box.in-progress {
    background: #78350f33;
    border-color: #92400e;
    color: #fbbf24;
}

body.dark-mode .week-box.in-progress span {
    color: #fcd34d;
}

body.dark-mode .activity-name-v2 {
    color: #f8fafc;
}

body.dark-mode .activity-item-v2 {
    border-color: #1f2937;
}

body.dark-mode .btn-reset-password {
    background: #1f2937;
    border-color: #374151;
    color: #cbd5e1;
}

body.dark-mode .btn-reset-password:hover {
    background: #374151;
}

body.dark-mode .btn-delete-user {
    background: #450a0a33;
    border-color: #7f1d1d;
    color: #f87171;
}

body.dark-mode .btn-delete-user:hover {
    background: #7f1d1d55;
}

body.dark-mode .btn-view-mini {
    background: #1f2937;
    color: #94a3b8;
}

body.dark-mode .btn-view-mini:hover {
    background: #374151;
    color: #f8fafc;
}

@media (max-width: 1280px) {
    .admin-premium-container {
        padding: 2rem;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Polished Shadows and Transitions */
.admin-stat-card,
.admin-module-card,
.admin-site-settings-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover,
.admin-module-card:hover,
.admin-site-settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.module-icon-box svg,
.stat-icon-v3 svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* User Management Specific Styles */
.admin-header-actions {
    display: flex;
    gap: 1rem;
}

.btn-export-csv,
.btn-new-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export-csv {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-new-user {
    background: #22c55e;
    border: none;
    color: white;
}

.btn-new-user:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.admin-table-controls {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1.25rem 1.25rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
    border-bottom: none;
    margin-bottom: 0;
}

.search-wrapper-premium {
    position: relative;
    width: 350px;
}

.search-icon-fixed {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-search-premium {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-search-premium:focus {
    border-color: #22c55e;
    background: white;
}

.filter-tabs-premium {
    display: flex;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.4rem;
    border-radius: 10px;
}

.filter-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active {
    background: white;
    color: #16a34a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-table-card-wrapper {
    background: white;
    border-radius: 0 0 1.25rem 1.25rem;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.premium-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
}

.premium-admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
    position: relative;
}

.premium-clickable-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.premium-clickable-row:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-cell-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle-v2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.bg-yellow-soft {
    background: #fffbeb;
    color: #d97706;
}

.bg-green-soft {
    background: #f0fdf4;
    color: #16a34a;
}

.bg-red-soft {
    background: #fef2f2;
    color: #dc2626;
}

.bg-blue-soft {
    background: #eff6ff;
    color: #2563eb;
}

.bg-grey-soft {
    background: #f8fafc;
    color: #64748b;
}

.user-cell-details {
    display: flex;
    flex-direction: column;
}

.user-name-v2 {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.user-email-v2 {
    font-size: 0.8rem;
    color: #94a3b8;
}

.badge-role {
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.75rem;
}

.bg-gold-tint {
    background: #fffbeb;
    color: #b45309;
}

.bg-blue-tint {
    background: #eff6ff;
    color: #1d4ed8;
}

.bg-purple-tint {
    background: #faf5ff;
    color: #7e22ce;
}

.bg-grey-tint {
    background: #f1f5f9;
    color: #475569;
}

.status-indicator-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.dot-v2 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bg-active {
    background: #22c55e;
}

.bg-inactive {
    background: #ef4444;
}

.bg-pending {
    background: #f59e0b;
}

.actions-cell-v2 {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-action-icon.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.admin-pagination-footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.pagination-summary {
    font-size: 0.85rem;
    color: #94a3b8;
}

.pagination-summary strong {
    color: #475569;
}

.pagination-controls-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-numbers-premium {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-page-step {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-page-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-page-num {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-page-num.active {
    background: #f0fdf4;
    color: #16a34a;
}

.page-dots {
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* Dark Mode Overrides for User Management */
body.dark-mode .admin-table-controls,
body.dark-mode .admin-table-card-wrapper,
body.dark-mode .admin-pagination-footer {
    background: #111827 !important;
    border-color: #1f2937 !important;
}

body.dark-mode .input-search-premium,
body.dark-mode .filter-tabs-premium,
body.dark-mode .btn-export-csv,
body.dark-mode .btn-page-step {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .filter-tab.active {
    background: #374151 !important;
    color: #4ade80 !important;
}

body.dark-mode .premium-admin-table th {
    border-color: #1f2937 !important;
}

body.dark-mode .premium-admin-table td {
    border-color: #1f2937 !important;
}

body.dark-mode .user-name-v2,
body.dark-mode .status-indicator-v2 {
    color: #f1f5f9 !important;
}

body.dark-mode .btn-action-icon:hover {
    background: #374151 !important;
}

body.dark-mode .pagination-summary strong {
    color: #cbd5e1 !important;
}

body.dark-mode .badge-role {
    opacity: 0.9;
}

/* Class Content Redesign Styles */
.class-content-wrapper {
    max-width: 1200px;
    margin: -5px auto 0;
    padding: 0 1.5rem 2rem 1.5rem;
}

.content-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
    margin-bottom: 2rem;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.green {
    background: #f0fdf4;
    color: #22c55e;
}

.icon-box.orange {
    background: #fff7ed;
    color: #f97316;
}

.icon-box.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-box.red {
    background: #fef2f2;
    color: #ef4444;
}

.icon-box.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.icon-box.yellow {
    background: #fefce8;
    color: #ca8a04;
}

.icon-box.amber {
    background: #fffbeb;
    color: #d97706;
}

.icon-box.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.icon-box.cyan {
    background: #ecfeff;
    color: #0891b2;
}

.icon-box.pink {
    background: #fdf2f8;
    color: #db2777;
}

.section-header-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title-v2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Theme List with Checkmarks */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.theme-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.check-pill {
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f0fdf4;
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Note Box */
.note-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 2rem;
}

/* Resource Rows (Files & Links) */
.resource-card-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.resource-card-modern:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.resource-info-v2 {
    flex: 1;
    min-width: 0;
}

.resource-name-v2 {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-meta-v2 {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Doubts Section */
.comment-bubble-modern {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-header-v2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-input-wrapper {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-input-modern {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    outline: none;
    color: #1e293b;
    font-family: inherit;
}

.btn-send-modern {
    width: 40px;
    height: 40px;
    background: #22c55e;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-modern:hover {
    transform: scale(1.05);
    background: #16a34a;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .class-content-wrapper {
        padding: 1rem 1.25rem;
    }

    .content-grid-mobile-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .content-card {
        padding: 1.5rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .section-header-v2 {
        margin-bottom: 1.5rem;
    }
}

/* Dark Mode Extensions for Class Content */
body.dark-mode .content-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .section-title-v2,
body.dark-mode .resource-name-v2,
body.dark-mode .comment-input-modern {
    color: #f1f5f9;
}

body.dark-mode .note-box,
body.dark-mode .resource-card-modern,
body.dark-mode .comment-bubble-modern,
body.dark-mode .comment-input-wrapper {
    background: #0f172a;
}

body.dark-mode .theme-item {
    color: #94a3b8;
}

/* Quiz/Workshop Interface Redesign */
.quiz-mobile-body {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 5rem;
    margin-top: 60px; /* Space for fixed mobile top nav */

}

@media (min-width: 1024px) {
    .quiz-mobile-body { margin-top: 0 !important; }
}

.quiz-header-v2 {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    position: sticky;
    top: 60px; /* Offset below the mobile-top-nav on mobile */
    z-index: 100;
}

@media (min-width: 1024px) {
    .quiz-header-v2 {
        top: 0; /* Desktop: no mobile nav to worry about */
    }
}

.quiz-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.quiz-brand-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-meta-info {
    display: flex;
    flex-direction: column;
}

.quiz-brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.quiz-brand-subtitle {
    font-size: 0.75rem;

    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.btn-finish-quiz {
    background: #22c55e;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-finish-btn {
    display: none !important;
}

.progress-timer-row {
    background: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: nowrap; /* Keep on same line */
}

.quiz-progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-progress-inner {
    flex: 1;
}

.progress-label-v2 {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
}

.progress-track-v2 {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-v2 {
    height: 100vh;
    background: #22c55e;
    transition: width 0.3s ease;
}

.quiz-timer-pill-mobile {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 0.8rem;
    color: #0f172a;
    white-space: nowrap;
    flex-shrink: 0;
}

.quiz-timer-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
}

.question-map-dropdown {
    margin: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.question-map-summary {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
}

.question-map-summary::-webkit-details-marker {
    display: none;
}

.question-card-v2 {
    background: white;
    margin: 1rem;
    padding: 2rem 1.5rem 0 1.5rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.question-number-badge {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    display: block;
    margin-bottom: 0.5rem;
}

.subject-badge-pill {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.enunciado-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.5rem;
}

.image-placeholder-dashed {
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.options-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-card-v2.selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

.option-letter-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #64748b;
    flex-shrink: 0;
}

.option-card-v2.selected .option-letter-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.option-text-v2 {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.option-marked-label {
    font-size: 10px;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
    display: none;
}

.option-card-v2.selected .option-marked-label {
    display: block;
}

.info-alert-blue {
    background: #eff6ff;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    margin: 1.5rem 1rem;
    border: 1px solid #dbeafe;
}

.info-alert-text {
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 600;
    line-height: 1.5;
}

.quiz-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    z-index: 100;
    display: none !important;
    /* FIXED ON MOBILE PER USER REQUEST */
}

.btn-nav-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
}

.btn-nav-v2.prev {
    background: #f1f5f9;
    color: #475569;
}

.btn-nav-v2.next {
    background: #0f172a;
    color: white;
}

/* --- NEW WORKSHOP DESKTOP DESIGN (Mockup Based) --- */

.quiz-main-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Desktop Sidebar */
.quiz-sidebar-desktop {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: none;
    /* Hidden on mobile */
    flex-direction: column;
    padding: 2rem 1.5rem 0 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
}

.sidebar-legend-grid {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.answered {
    background: #22c55e;
}

.dot.review {
    background: #eab308;
}

.dot.pending {
    border: 2px solid #e2e8f0;
}

.dot.current {
    border: 2px solid #22c55e;
}

.sidebar-map-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.map-number-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
}

.map-number-btn.answered {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.map-number-btn.review {
    background: #eab308;
    border-color: #eab308;
    color: white;
}

.map-number-btn.current {
    border-color: #22c55e;
    color: #22c55e;
}





/* Header Adjustments */
.quiz-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-progress-section-desktop {
    display: none;
}

.quiz-progress-desktop {
    flex: 1;
    max-width: 300px;
}

.quiz-progress-desktop .progress-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-progress-desktop .progress-bar-container {
    height: 8px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quiz-progress-desktop .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.quiz-progress-desktop .progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-top: 0.5rem;
}

/* Main Content Area */
.quiz-mobile-body {
    flex: 1;
    overflow-y: auto;
}

/* Visibility Helpers */
.desktop-only {
    display: none !important;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: flex !important;
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }
}

/* Desktop Overrides */
@media (min-width: 1024px) {
    .quiz-sidebar-desktop {
        display: flex;
    }

    .quiz-header-actions {
        display: flex;
        gap: 2rem;
    }

    .quiz-progress-section-desktop {
        display: flex;
    }

    .quiz-brand-box {
        gap: 1.5rem;
    }

    .quiz-header-container {
        padding: 0 2.5rem;
    }

    .question-card-v2 {
        max-width: 900px;
        margin: 3rem auto;
        padding: 4rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    }

    .quiz-brand-title {
        font-size: 1.5rem;
    }
}

/* Text Block Icon Styling */
.text-block-icon-container {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.text-block-icon-container svg {
    width: 32px;
    height: 32px;
    stroke: #64748b;
}

/* Sidebar Map Buttons for Text */
.map-number-btn.text-block {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.map-number-btn.text-block.current {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Desktop Navigation Row Inside Card */
@media (min-width: 1024px) {
    .desktop-nav-row {
        display: flex;
    }

    .btn-desktop-primary {
        background: #22c55e;
        color: white;
        padding: 0.875rem 1.75rem;
        border-radius: 14px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    }

    .btn-desktop-primary:hover {
        background: #16a34a;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
    }

    .btn-desktop-secondary {
        background: white;
        color: #64748b;
        padding: 0.875rem 1.75rem;
        border-radius: 14px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s;
        border: 1px solid #e2e8f0;
        cursor: pointer;
    }

    .btn-desktop-secondary:hover:not(.disabled) {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    .btn-desktop-secondary.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-desktop-review {
        background: white;
        color: #eab308;
        padding: 0.875rem 1.75rem;
        border-radius: 14px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s;
        border: 2px solid #fef08a;
        cursor: pointer;
    }

    .btn-desktop-review:hover {
        background: #fefce8;
    }

    .btn-desktop-review.active {
        background: #fef08a;
        color: #854d0e;
        border-color: #eab308;
    }
}

/* Dark Mode Extensions (Updated) */
body.dark-mode .btn-desktop-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .btn-desktop-review {
    background: #1e293b;
    border-color: #3f3f46;
}

body.dark-mode .btn-desktop-review.active {
    background: #854d0e;
    color: #fef08a;
    border-color: #eab308;
}

body.dark-mode .quiz-sidebar-desktop {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .sidebar-header-premium,
body.dark-mode .legend-item span {
    color: #f1f5f9;
}

body.dark-mode .sidebar-legend-grid {
    background: #0f172a;
}

body.dark-mode 

body.dark-mode 

body.dark-mode .map-number-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

/* Review Mode Styles */
.option-card-v2.correct-answer {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}

.option-card-v2.correct-answer .option-letter-circle {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
}

.option-card-v2.incorrect-answer {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.option-card-v2.incorrect-answer .option-letter-circle {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}

.map-number-btn.incorrect {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}

@media (max-width: 1023px) {
    .quiz-header-container {
        padding: 0 1rem;
    }
}

/* 
========================================
   MOBILE BOTTOM BAR (New Implementation)
   Visible by default (Mobile First Strategy)
========================================
*/
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    /* Explicit height */
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
    /* iPhone notch support */
    border-top: 1px solid #f1f5f9;
    z-index: 9999;
    /* Very high Z-Index */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    gap: 4px;
    padding: 0.5rem 2px;
    min-width: 0;
    transition: all 0.2s ease;
}

.mobile-bar-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
}

.mobile-bar-item span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Active State */
.mobile-bar-item.active {
    color: #1a5f45;
    /* Primary Green */
}

.mobile-bar-item.active svg {
    transform: translateY(-2px);
    stroke-width: 2.8;
}

/* Dark Mode Styles */
body.dark-mode .mobile-bottom-bar {
    background-color: #0f172a;
    /* Slate 900 */
    border-top-color: #1e293b;
}

body.dark-mode .mobile-bar-item {
    color: #64748b;
}

body.dark-mode .mobile-bar-item.active {
    color: #4ade80;
    /* Brighter Green for Dark Mode */
}

/* 
   DESKTOP OVERRIDE 
   Hide ONLY on large screens (min-width: 1024px)
*/
@media (min-width: 1024px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* Visibility Helpers */
.hidden-on-mobile {
    display: none !important;
}

@media (min-width: 1024px) {
    .hidden-on-mobile {
        display: flex !important;
    }
}

.hidden-on-desktop {
    display: flex !important;
}

@media (min-width: 1024px) {
    .hidden-on-desktop {
        display: none !important;
    }
}