/* ==================== Variables ==================== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4cc9f0;
    --secondary: #10b981;
    --danger: #ef476f;
    --warning: #ffd166;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

/* ==================== Dark Mode ==================== */
body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --primary: #4cc9f0;
    --primary-dark: #4361ee;
    --gradient-primary: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

body.dark-mode {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-mode .navbar {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

body.dark-mode .card {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

body.dark-mode .modal-content {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #2a2a3a;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary);
    background: #2f2f3f;
}

body.dark-mode .nav-link {
    color: var(--text-primary);
}

body.dark-mode .nav-link:hover {
    background: rgba(74, 158, 255, 0.15);
    color: var(--primary);
}

body.dark-mode .nav-link.active {
    background: rgba(74, 158, 255, 0.25);
    color: var(--primary);
}

body.dark-mode .btn-primary {
    background: var(--primary);
    color: white;
}

body.dark-mode .btn-primary:hover {
    background: var(--primary-dark);
}

body.dark-mode .stat-card {
    background: linear-gradient(135deg, #2a2a3a 0%, #1e1e2e 100%);
    border: 1px solid var(--border);
}

/* Dark Mode - Session Cards */
body.dark-mode #sessions-page .card[style*="linear-gradient(135deg, #e0e7ff"] {
    background: linear-gradient(135deg, #1e1b3a 0%, #2d1b4e 100%) !important;
    color: #e0d5ff !important;
}

body.dark-mode #sessions-page .card[style*="linear-gradient(135deg, #fce7f3"] {
    background: linear-gradient(135deg, #3a1e2d 0%, #4e1b2d 100%) !important;
    color: #ffd5e5 !important;
}

body.dark-mode #sessions-page h3 {
    color: #c4b5fd !important;
}

body.dark-mode #sessions-page p {
    color: #d0c5ff !important;
    opacity: 0.9 !important;
}

body.dark-mode #sessions-page label {
    color: #c4b5fd !important;
}

body.dark-mode #sessions-page input {
    background: #0f0f1e !important;
    border: 2px solid #4a4a6a !important;
    color: #e0e0e0 !important;
}

body.dark-mode #sessions-page input::placeholder {
    color: #888 !important;
}

body.dark-mode #sessions-page input:focus {
    border-color: #7c3aed !important;
    background: #1a1a2e !important;
}

body.dark-mode #sessions-page .card[style*="e0e7ff"] div[style*="rgba(139, 92, 246"] {
    background: rgba(139, 92, 246, 0.3) !important;
}

body.dark-mode #sessions-page .card[style*="fce7f3"] div[style*="rgba(244, 63, 94"] {
    background: rgba(244, 63, 94, 0.3) !important;
}

/* ==================== Dashboard Stats Grid ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== Mobile Optimizations ==================== */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    /* Sessions cards mobile */
    #sessions-page .card {
        padding: 16px;
    }
    
    /* Navigation mobile - show icons only */
    .nav-link span:not(.icon):not(.badge) {
        display: none;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Modal mobile */
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    /* Buttons mobile - larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Mobile User Name */
    .nav-user-mobile {
        display: none;
        padding: 15px;
        font-weight: 600;
        color: var(--primary);
        border-bottom: 1px solid var(--border);
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .nav-user-mobile {
        display: block;
    }
    
    .nav-user {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    #sessions-page .card {
        padding: 12px;
    }
}

body.dark-mode .stat-card .stat-value {
    color: var(--primary);
}

body.dark-mode .empty-state {
    color: var(--text-secondary);
}

body.dark-mode .page-header h2 {
    color: var(--text-primary);
}

body.dark-mode .text-secondary {
    color: var(--text-secondary) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-primary);
}

body.dark-mode .nav-brand h1 {
    color: var(--text-primary);
}

body.dark-mode .badge {
    background: var(--primary);
    color: white;
}

body.dark-mode label {
    color: var(--text-primary);
}

body.dark-mode .modal-header h2 {
    color: var(--text-primary);
}

body.dark-mode .countdown-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

body.dark-mode .stat-icon {
    filter: brightness(1.2);
}

body.dark-mode .alert {
    background: #2a2a3a;
    border-color: var(--border);
    color: var(--text-primary);
}

body.dark-mode .session-card {
    background: #2a2a3a;
    border-color: var(--border);
}

body.dark-mode .session-card:hover {
    background: #2f2f3f;
    border-color: var(--primary);
}

body.dark-mode .courses-grid::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode .courses-grid::-webkit-scrollbar-track {
    background: #2a2a3a;
}

body.dark-mode .courses-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

body.dark-mode .btn-secondary {
    background: #3a3a4a;
    color: var(--text-primary);
}

body.dark-mode .btn-secondary:hover {
    background: #4a4a5a;
}

body.dark-mode .page {
    background: #0f0f1e !important;
}

body.dark-mode .container {
    background: transparent !important;
}

body.dark-mode #dashboard-page,
body.dark-mode #calendar-page,
body.dark-mode #notifications-page,
body.dark-mode #settings-page {
    background: #0f0f1e !important;
}

body.dark-mode #dashboard-page .container,
body.dark-mode #calendar-page .container,
body.dark-mode #notifications-page .container,
body.dark-mode #settings-page .container {
    background: transparent !important;
}

body.dark-mode .section {
    background: #1a1a3a !important;
    border: 1px solid #2a2a3a;
}

body.dark-mode .section-header {
    border-bottom-color: #2a2a3a;
}

body.dark-mode .section-header h3 {
    color: #ffffff;
}

body.dark-mode .countdown-card .countdown-number {
    color: white;
}

body.dark-mode .countdown-card p {
    color: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== Navigation ==================== */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--dark);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--light);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-link .icon {
    font-size: 1.2rem;
}

.nav-link .badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.nav-user {
    font-weight: 600;
    color: var(--primary);
}

/* ==================== Pages ==================== */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--dark);
}

/* ==================== Buttons ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

/* FAQ */
.faq-section { 
    margin: 2rem 0 0; 
    padding: 1.25rem 0 0; 
    border-top: 1px dashed var(--border-color, #2a2a2a);
}
.faq-title { 
    font-size: 1.25rem; 
    margin-bottom: .75rem; 
}
.faq-list details { 
    background: var(--surface-1, rgba(255,255,255,0.03)); 
    border: 1px solid var(--border-color, #2a2a2a); 
    border-radius: 10px; 
    padding: .75rem 1rem; 
    margin-bottom: .6rem; 
}
.faq-list summary { 
    cursor: pointer; 
    list-style: none; 
    font-weight: 600; 
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] { 
    background: var(--surface-2, rgba(255,255,255,0.05)); 
}
.faq-answer { 
    margin-top: .5rem; 
    color: var(--text-muted, #bbb); 
}

/* Footer */
.site-footer {
    margin-top: 30px;
    padding: 20px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.site-footer .footer-content {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.site-footer .footer-sep { opacity: 0.5; }

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success {
    border-right: 4px solid var(--secondary);
}

.toast-error {
    border-right: 4px solid var(--danger);
}

.toast-warning {
    border-right: 4px solid var(--warning);
}

.toast-icon {
    font-size: 1.5rem;
}

/* ==================== Animations ==================== */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.5s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==================== Burger Menu ==================== */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-icon {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.burger-icon::before { transform: translateY(-8px); }
.burger-icon::after { transform: translateY(8px); }

.burger-menu.active .burger-icon { background: transparent; }
.burger-menu.active .burger-icon::before { transform: rotate(45deg); }
.burger-menu.active .burger-icon::after { transform: rotate(-45deg); }

/* Mobile Navigation Drawer */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        justify-content: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px;
        border-radius: var(--radius);
        font-size: 1.1rem;
        flex-direction: row; /* Restore row layout for drawer */
        justify-content: flex-start;
    }
    
    .nav-link span:not(.icon):not(.badge) {
        display: inline-block; /* Show text in drawer */
        font-size: 1rem;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        backdrop-filter: blur(3px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust hero buttons for mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==================== Dark Mode Additional Fixes ==================== */

/* Settings Page */
body.dark-mode .settings-section {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

body.dark-mode .settings-section h3 {
    color: #ffffff;
    border-bottom: 2px solid #3a3a4a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

body.dark-mode .settings-content {
    background: var(--bg-secondary);
}

/* Form Elements in Dark Mode */
body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group input[type="time"],
body.dark-mode .form-group select {
    background: #1e1e2e;
    border: 2px solid #3a3a4a;
    color: #ffffff;
}

body.dark-mode .form-group input[type="text"]:disabled,
body.dark-mode .form-group input[type="email"]:disabled {
    background: #252535;
    color: #888;
    opacity: 0.7;
}

body.dark-mode .form-group input[type="checkbox"] {
    accent-color: #5a9fff;
}

/* Course Selection */
body.dark-mode .course-item {
    background: #2a2a3a;
    border: 2px solid #3a3a4a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

body.dark-mode .course-item:hover {
    background: #2f2f3f;
    border-color: #5a9fff;
}

body.dark-mode .course-item label {
    color: #ffffff;
    cursor: pointer;
}

body.dark-mode .course-code {
    color: #5a9fff;
    font-weight: bold;
}

body.dark-mode .course-difficulty {
    opacity: 0.9;
}

/* Countdown Card */
body.dark-mode .countdown-card {
    background: linear-gradient(135deg, #5a9fff 0%, #4080d0 100%);
}

/* Calendar Improvements */
body.dark-mode .calendar-day {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

body.dark-mode .calendar-day.today {
    border: 2px solid #5a9fff;
    background: rgba(90, 159, 255, 0.15);
}

body.dark-mode .day-header {
    border-bottom-color: #3a3a4a;
}

body.dark-mode .calendar-session {
    background: rgba(90, 159, 255, 0.2);
    border-left-color: #5a9fff;
}

/* Modal Improvements */
body.dark-mode .modal-content {
    background: #2a2a3a;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #3a3a4a;
}

/* Notifications */
body.dark-mode .notification-item {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

body.dark-mode .notification-item:hover {
    background: #2f2f3f;
}

body.dark-mode .notification-item.unread {
    background: #2f2f45;
    border-left: 4px solid #5a9fff;
}

/* Empty States */
body.dark-mode .empty-state {
    color: #888;
}

/* Progress Bars */
body.dark-mode .progress-bar {
    background: #3a3a4a;
}

body.dark-mode .progress-fill {
    background: #5a9fff;
}

/* Badges */
body.dark-mode .session-type-badge {
    background: rgba(90, 159, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(90, 159, 255, 0.4);
}

/* Toast Notifications */
body.dark-mode .toast {
    background: #2a2a3a;
    color: #ffffff;
    border: 1px solid #3a3a4a;
}

/* Dark Mode - Countdown */
body.dark-mode .countdown-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

body.dark-mode .countdown-label {
    color: var(--text-secondary);
}

body.dark-mode .countdown-value {
    color: var(--primary);
}

body.dark-mode .toast.success {
    border-left: 4px solid #28a745;
}

body.dark-mode .toast.error {
    border-left: 4px solid #dc3545;
}

body.dark-mode .toast.warning {
    border-left: 4px solid #ffc107;
}

/* Scrollbar Styling */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1e1e2e;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #3a3a4a;
    border-radius: 5px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #4a4a5a;
}

/* Course Items in Modal - Dark Mode */
body.dark-mode .course-item {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
    color: #ffffff;
}

body.dark-mode .course-item:hover {
    background: #2f2f3f;
    border-color: #5a9fff;
}

body.dark-mode .course-item label {
    color: #ffffff;
}

body.dark-mode .course-code {
    background: rgba(90, 159, 255, 0.2);
    color: #5a9fff;
    border: 1px solid rgba(90, 159, 255, 0.3);
}

body.dark-mode .course-difficulty {
    color: #ffc107;
}

/* Course Search Box - Dark Mode */
body.dark-mode .course-search-box input {
    background: #2a2a3a;
    border-color: #3a3a4a;
    color: #ffffff;
}

body.dark-mode .course-search-box input:focus {
    border-color: #5a9fff;
    background: #2f2f3f;
}

body.dark-mode .course-search-box input::placeholder {
    color: #888;
}

body.dark-mode #search-count {
    color: #888;
}

/* ==================== Landing Page Styles ==================== */
.landing-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .landing-header {
    background: rgba(15, 23, 42, 0.8);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.landing-actions {
    display: flex;
    gap: 10px;
}

.hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(76, 201, 240, 0.1), transparent 40%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-image {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-mockup {
    width: 80%;
    height: 80%;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.dots span:nth-child(1) { background: #ef476f; }
.dots span:nth-child(2) { background: #ffd166; }
.dots span:nth-child(3) { background: #06d6a0; }

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.mockup-row {
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    width: 100%;
}

.mockup-row.active {
    background: var(--primary);
    opacity: 0.1;
    width: 70%;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 1.5rem;
    background: rgba(67, 97, 238, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.floating-card small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 20%; left: -20px; animation-delay: 2s; }
.card-3 { top: 40%; right: 10%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.features-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(67, 97, 238, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Responsive for Landing */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image {
        height: 300px;
    }
}

/* ==================== Professional Dark Mode Toggle (Rectangular) ==================== */
.dark-mode-btn {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    height: 40px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow) !important;
}

.dark-mode-btn:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.dark-mode-btn .icon-light,
.dark-mode-btn .icon-dark {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    transition: var(--transition) !important;
}

/* Light Mode: Sun active, Moon inactive */
.dark-mode-btn .icon-light {
    color: #f59e0b !important; /* Sun color */
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.dark-mode-btn .icon-dark {
    color: #94a3b8 !important;
    opacity: 0.3 !important;
    transform: scale(0.9) !important;
}

/* Dark Mode: Sun inactive, Moon active */
body.dark-mode .dark-mode-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .dark-mode-btn .icon-light {
    opacity: 0.3 !important;
    color: #64748b !important;
    transform: scale(0.9) !important;
}

body.dark-mode .dark-mode-btn .icon-dark {
    opacity: 1 !important;
    color: #60a5fa !important; /* Moon color */
    transform: scale(1.1) !important;
}

/* ==================== Dashboard Fixes ==================== */
.section {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.countdown-box {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.countdown-icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}
