/* Dashboard Styles - Sidebar Layout with Modern Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* Main Container */
.dashboard-container {
    display: flex;
    height: 100vh;
    background: var(--bg-secondary);
}

/* ====================== */
/* Sidebar Styles */
/* ====================== */
.dashboard-sidebar {
    width: 250px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base);
    z-index: 100;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-logo .logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.sidebar-logo .logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-sm);
}

/* Sidebar Profile */
.sidebar-profile {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 3px solid var(--accent-light);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-tier {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-md) 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-link:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.sidebar-link.active {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
}

.sidebar-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logout-btn {
    flex: 1;
}

/* ====================== */
/* Main Content Area */
/* ====================== */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Dashboard Header */
/* DISABLED - Using dashboard-glass.css instead
.dashboard-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-lg) var(--space-2xl);
}
*/
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: var(--space-sm);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.search-bar i {
    position: absolute;
    left: var(--space-md);
    color: var(--text-tertiary);
}

.search-bar input {
    padding-left: 40px;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2xl);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn var(--transition-base);
}

.content-section.active {
    display: block;
}

/* ====================== */
/* Overview Section */
/* ====================== */
.welcome-banner {
    background: var(--gradient-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    color: white;
}

.welcome-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.welcome-content p {
    font-size: var(--text-lg);
    opacity: 0.9;
}

.welcome-illustration {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.gradient-orb {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-base);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Section Container */
.section-container {
    margin-bottom: var(--space-2xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.view-all-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
}

.view-all-link:hover {
    transform: translateX(4px);
}

/* ====================== */
/* Courses Grid */
/* ====================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* List View Styles */
.courses-grid.list-view {
    grid-template-columns: 1fr; /* Single column for list view */
    gap: 16px;
}

.courses-grid.list-view .course-card {
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout */
    min-height: 240px !important; /* Increase to fit all content */
    height: auto !important; /* Allow natural height */
    max-height: none !important; /* Remove any height limits */
    overflow: visible !important;
}

.courses-grid.list-view .course-image {
    width: 240px;
    min-width: 240px;
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
}

.courses-grid.list-view .course-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Changed from space-between to show all content */
    padding: 20px !important;
    gap: 10px !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.courses-grid.list-view .course-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.courses-grid.list-view .course-content > p {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.courses-grid.list-view .course-meta {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    font-size: 0.85rem;
}

.courses-grid.list-view .course-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin-top: auto !important; /* Push to bottom of container */
}

.courses-grid.list-view .course-progress {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    flex-shrink: 0 !important; /* Prevent shrinking/hiding */
}

.courses-grid.list-view .course-progress .progress-bar {
    height: 12px !important; /* Make more visible */
    background: rgba(102, 126, 234, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: 100% !important;
}

.courses-grid.list-view .course-progress .progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    border-radius: 6px !important;
}

.courses-grid.list-view .course-progress .progress-text {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #667eea !important;
    display: block !important;
}

/* Hide progress overlay in list view (redundant with progress bar at bottom) */
.courses-grid.list-view .course-progress-overlay {
    display: none;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.enrolled-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.course-image {
    position: relative;
    height: 120px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.course-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.course-progress {
    margin-bottom: var(--space-md);
}

.course-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.course-progress .progress-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.course-progress .progress-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.course-actions {
    gap: 8px;
    margin-top: auto;
    display: flex;
    align-items: center;
}

.course-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--gradient-secondary);
}

.course-locked {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.course-body {
    padding: var(--space-lg);
}

.course-category {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--accent-primary);
    background: var(--accent-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.course-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.course-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-duration {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.course-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-md);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-success);
    transition: width var(--transition-base);
}

/* ====================== */
/* Section Controls */
/* ====================== */
.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-tabs {
    display: flex;
    gap: var(--space-sm);
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-tab:hover {
    background: var(--bg-tertiary);
}

.filter-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.view-controls {
    display: flex;
    gap: var(--space-sm);
}

.view-btn {
    padding: var(--space-sm);
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.view-btn:hover {
    background: var(--bg-tertiary);
}

.view-btn.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Filter Dropdowns */
.filter-dropdown {
    display: flex;
    gap: var(--space-md);
}

.filter-dropdown select {
    padding: var(--space-sm) var(--space-md);
    min-width: 150px;
}

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

.search-filter input {
    padding-right: 40px;
    width: 250px;
}

.search-filter i {
    position: absolute;
    right: var(--space-md);
    color: var(--text-tertiary);
}

/* ====================== */
/* Empty States */
/* ====================== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ====================== */
/* Notes Section */
/* ====================== */
.notes-search {
    position: relative;
    display: flex;
    align-items: center;
}

.notes-search input {
    padding-right: 40px;
    width: 100%;
    max-width: 400px;
}

.notes-search i {
    position: absolute;
    right: var(--space-md);
    color: var(--text-tertiary);
}

.notes-container {
    display: grid;
    gap: var(--space-md);
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.note-card:hover {
    box-shadow: var(--shadow-md);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
}

.note-course {
    font-size: var(--text-sm);
    color: var(--accent-primary);
    font-weight: 500;
}

.note-date {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.note-content {
    color: var(--text-primary);
    line-height: 1.6;
}

/* ====================== */
/* Settings Section */
/* ====================== */
.settings-container {
    display: grid;
    gap: var(--space-lg);
    max-width: 800px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.settings-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.preference-text {
    flex: 1;
}

.preference-text span {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.preference-text small {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.danger-zone {
    border-color: var(--danger-light);
}

.danger-zone button {
    margin-right: var(--space-md);
}

/* ====================== */
/* Notification Toast */
/* ====================== */
.notification-toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    animation: slideInUp var(--transition-base);
    z-index: 1000;
    max-width: 400px;
}

.notification-toast.show {
    display: block;
}

.notification-toast.success {
    border-color: var(--success);
    background: var(--success-light);
}

.notification-toast.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

/* ====================== */
/* Responsive Design */
/* ====================== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Sidebar */
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .dashboard-sidebar.sidebar-mobile-open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    /* Adjust main content */
    .content-wrapper {
        padding: var(--space-lg);
    }

    /* List view: Stack cards vertically on mobile */
    .courses-grid.list-view .course-card {
        flex-direction: column;
    }

    .courses-grid.list-view .course-image {
        width: 100%;
        height: 180px;
    }

    .header-content {
        flex-direction: column;
        align-items: start;
        gap: var(--space-md);
    }

    .search-bar input {
        width: 100%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-illustration {
        display: none;
    }

    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-dropdown,
    .filter-tabs {
        width: 100%;
    }
}

/* Mobile overlay */
@media (max-width: 768px) {
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 99;
    }

    .sidebar-overlay.show {
        display: block;
    }
}
/* Add gradient overlay to course images */
.course-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 152, 0, 0.2) 100%);
    z-index: 1;
}

/* Position category badge as overlay on top of image */
.course-image .course-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: rgba(99, 102, 241, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* Ensure image stays behind overlays */
.course-image img {
    position: relative;
    z-index: 0;
}

/* Fix for category text being cut off */
.course-image {
    overflow: visible !important;
}

.course-image .course-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.95);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
}

/* ====================== */
/* Enhanced Settings Styles */
/* ====================== */

/* Toggle Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6366f1;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Avatar Upload Section */
.avatar-section {
    margin-bottom: 2rem;
}

.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-controls {
    flex: 1;
}

.avatar-upload-controls small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Dark Mode Support */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --border-primary: #444;
}

body.dark-mode .settings-card,
body.dark-mode .course-card,
body.dark-mode .stat-card {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

body.dark-mode .current-avatar {
    border-color: #444;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #2a2a2a;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-mode .btn-secondary {
    background: #4a4a4a;
    color: #f0f0f0;
}

body.dark-mode .btn-secondary:hover {
    background: #5a5a5a;
}

/* Ensure buttons don't wrap text */
.course-actions .btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
}
