:root {
    /* Light theme */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #6c757d;
    --accent-primary: #0f3460;
    --accent-secondary: #16213e;
    --accent-highlight: #e94560;
    --border-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f1419;
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --text-muted: #6c757d;
    --accent-primary: #0f3460;
    --accent-secondary: #16213e;
    --accent-highlight: #e94560;
    --border-color: rgba(255,255,255,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-heading {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.5rem;
}

.logo {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.app-heading2 {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.5rem;
}

.promotional-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease;
}

.promotional-card:hover {
    transform: translateY(-5px);
}

.promotional-heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.promotional-cta {
    background-color: white !important;
    color: var(--accent-primary) !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promotional-cta:hover {
    transform: scale(1.05);
}

.topic-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    background-color: var(--bg-secondary);
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topic-card.notstarted {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}

[data-theme="dark"] .topic-card.notstarted {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1e3a5f 100%);
    color: #64b5f6;
    border: 1px solid #42a5f5;
}

.topic-card.inprogress {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

[data-theme="dark"] .topic-card.inprogress {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #3d2914 100%);
    color: #ffb74d;
    border: 1px solid #ff9800;
}

.topic-card.completed {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

[data-theme="dark"] .topic-card.completed {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1b3b1b 100%);
    color: #81c784;
    border: 1px solid #4caf50;
}

.topic-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.topic-questions {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.topic-status {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
    color: var(--text-secondary);
}

.topic-badge {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: inherit !important;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topic-badge:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.05);
}

[data-theme="dark"] .topic-badge {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: inherit !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .topic-badge:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .topic-card.notstarted .topic-badge {
    background-color: rgba(100, 181, 246, 0.2) !important;
    color: #64b5f6 !important;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

[data-theme="dark"] .topic-card.inprogress .topic-badge {
    background-color: rgba(255, 183, 77, 0.2) !important;
    color: #ffb74d !important;
    border: 1px solid rgba(255, 183, 77, 0.3);
}

[data-theme="dark"] .topic-card.completed .topic-badge {
    background-color: rgba(129, 199, 132, 0.2) !important;
    color: #81c784 !important;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Logo Highlight */
.logo-highlight {
    color: var(--accent-primary);
    font-weight: 800;
}

[data-theme="dark"] .logo-highlight {
    color: var(--accent-highlight);
}

/* Topic Page Styles */
.navbar {
    background-color: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar {
    background-color: var(--bg-secondary) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary) !important;
}

.topic-header {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.topic-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.progress-info {
    max-width: 100%;
}

.progress {
    height: 30px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 15px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-highlight));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease;
}

.overall-progress {
    min-width: 120px;
}

.overall-progress .h4 {
    color: var(--accent-highlight);
    font-weight: 700;
    font-size: 1.5rem;
}

.question-card {
    border: none;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.question-card.completed {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

[data-theme="dark"] .question-card.completed {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1b3b1b 100%);
    color: #81c784;
    border: 1px solid #4caf50;
}

.question-card.completed .question-title {
    text-decoration: line-through;
    opacity: 0.8;
}

[data-theme="dark"] .question-card.completed .question-title {
    color: #81c784;
}

.question-card.bookmarked {
    border-left: 4px solid #ffc107;
}

.question-card.bookmarked::before {
    content: '📌';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
}

.remark-section {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.5rem;
}

.remark-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.remark-toggle:hover {
    color: var(--accent-primary);
}

.remark-content {
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.remark-content.show {
    display: block;
}

.remark-text {
    background: var(--bg-primary);
    border-left: 3px solid var(--accent-primary);
    padding: 0.75rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.remark-display {
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.remark-display .remark-content {
    margin: 0;
}

.remark-display .remark-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    background: var(--bg-primary);
    border-left: 3px solid var(--accent-highlight);
    padding: 0.5rem 0.75rem;
}

.question-number {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.question-card.completed .question-number {
    background: rgba(46, 125, 50, 0.8);
}

[data-theme="dark"] .question-card.completed .question-number {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.question-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.question-card.completed .question-title {
    color: #2e7d32;
}

[data-theme="dark"] .question-card.completed .question-title {
    color: #81c784;
}

.question-difficulty {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.difficulty-easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background-color: #f8d7da;
    color: #721c24;
}

.question-card.completed .question-difficulty {
    background-color: rgba(255, 255, 255, 0.8);
    color: #2e7d32;
}

[data-theme="dark"] .question-card.completed .question-difficulty {
    background-color: rgba(129, 199, 132, 0.2);
    color: #81c784;
}

.question-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.question-link {
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-leetcode {
    background-color: #ffa116;
    color: white;
}

.link-gfg {
    background-color: #2f8d46;
    color: white;
}

.link-youtube {
    background-color: #ff0000;
    color: white;
}

.question-link:hover {
    transform: translateY(-1px);
    color: white;
    opacity: 0.9;
}

.question-card.completed .question-link {
    background-color: rgba(255, 255, 255, 0.8);
    color: #2e7d32;
}

[data-theme="dark"] .question-card.completed .question-link {
    background-color: rgba(129, 199, 132, 0.2);
    color: #81c784;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.mark-complete-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mark-complete-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

[data-theme="dark"] .mark-complete-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-highlight);
    color: var(--accent-highlight);
}

[data-theme="dark"] .mark-complete-btn:hover {
    background: var(--accent-highlight);
    color: white;
}

.mark-complete-btn.completed {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.mark-complete-btn.completed:hover {
    background: #218838;
    border-color: #218838;
    color: white;
}

[data-theme="dark"] .mark-complete-btn.completed {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

[data-theme="dark"] .mark-complete-btn.completed:hover {
    background: #388e3c;
    border-color: #388e3c;
    color: white;
}

/* View Toggle Styles */
.view-toggle {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.view-toggle .btn {
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.view-toggle .btn:not(.active) {
    background: transparent;
    color: var(--text-secondary);
}

.view-toggle .btn:not(.active):hover {
    background: rgba(15, 52, 96, 0.1);
    color: var(--accent-primary);
}

/* Grid View */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.questions-grid .question-card {
    height: auto;
    padding: 0;
}

.questions-grid .question-card .card-body {
    padding: 1.5rem;
}

.questions-grid .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
}

.questions-grid .question-number {
    align-self: flex-start;
}

.questions-grid .flex-grow-1 {
    width: 100%;
}

.questions-grid .mark-complete-btn {
    align-self: flex-end;
    margin-top: 1rem;
}

/* List View */
.questions-list .question-card {
    margin-bottom: 0.5rem;
}

.questions-list .question-card .card-body {
    padding: 1rem;
}

.questions-list .question-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.questions-list .question-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.questions-list .question-links {
    gap: 0.3rem;
}

.questions-list .question-link {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.questions-list .mark-complete-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Resource Cards */
.resource-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card .card-body {
    padding: 2rem;
}

.resource-card .btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resource-card .btn:hover {
    transform: translateY(-2px);
}

/* Dark Mode Styles */
[data-theme="dark"] .resource-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .resource-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .resource-card .card-text {
    color: var(--text-muted);
}

[data-theme="dark"] .resource-card .btn {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .resource-card .btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Footer styling */
footer {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] footer {
    background-color: var(--bg-secondary) !important;
}

footer p {
    color: var(--text-secondary);
}

footer a {
    color: var(--accent-highlight);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

/* Small text elements */
.text-muted {
    color: var(--text-muted) !important;
}

small.text-muted {
    color: var(--text-muted) !important;
}

/* Topic page specific text elements */
h5 {
    color: var(--text-primary);
}

h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Progress text styling */
.progress-info small {
    color: var(--text-muted) !important;
}

/* Badge styling for topic pages */
.badge {
    color: inherit;
}

.topic-badge {
    color: inherit !important;
}

/* General button styling for dark mode */
.btn {
    border-width: 1px;
    transition: all 0.3s ease;
}

/* Primary buttons */
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background-color: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #d73650;
    border-color: #d73650;
}

/* Outline primary buttons */
.btn-outline-primary {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--accent-highlight);
    border-color: var(--accent-highlight);
    color: white;
}

/* Secondary buttons */
.btn-secondary {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

/* Outline secondary buttons */
.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Danger buttons */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

[data-theme="dark"] .btn-danger {
    background-color: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

[data-theme="dark"] .btn-danger:hover {
    background-color: #d73650;
    border-color: #d73650;
}

[data-theme="dark"] .btn-outline-danger {
    color: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

[data-theme="dark"] .btn-outline-danger:hover {
    background-color: var(--accent-highlight);
    border-color: var(--accent-highlight);
    color: white;
}

/* Warning buttons (for bookmarks) */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

[data-theme="dark"] .btn-warning {
    background-color: #ffb74d;
    border-color: #ffb74d;
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-warning:hover {
    background-color: #ffa726;
    border-color: #ffa726;
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .app-heading {
        font-size: 2rem;
    }
    
    .promotional-heading {
        font-size: 1rem;
    }
    
    .promotional-card .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .topic-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .topic-title {
        font-size: 1.5rem;
    }
    
    .overall-progress .h4 {
        font-size: 1.2rem;
    }
    
    .progress {
        height: 25px;
    }
    
    .progress-bar {
        font-size: 0.9rem;
    }
    
    .question-card {
        margin-bottom: 0.8rem;
    }
    
    .question-links {
        justify-content: flex-start;
        gap: 0.3rem;
    }
    
    .question-link {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .question-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    .mark-complete-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .questions-grid .question-card .card-body {
        padding: 1rem;
    }
    
    .questions-grid .d-flex.align-items-center {
        flex-direction: row;
        align-items: center !important;
        gap: 1rem;
    }
    
    .questions-grid .mark-complete-btn {
        align-self: center;
        margin-top: 0;
    }
    
    .view-toggle {
        text-align: center;
    }
    
    .view-toggle .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
/* Filter Controls Styles */
.filter-controls {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-controls .btn-group .btn {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.3s ease;
}

.filter-controls .btn-group .btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

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

[data-theme="dark"] .filter-controls .btn-group .btn.active {
    background: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

[data-theme="dark"] .filter-controls .btn-group .btn:hover {
    background: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

/* Enhanced progress section */
.progress-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) 0deg, var(--border-color) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.progress-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    position: absolute;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-primary);
    z-index: 1;
}

.stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

[data-theme="dark"] .progress-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Enhanced Auth page styles */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .auth-body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 50%, #16213e 100%);
}

/* Floating particles animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 10%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
    }
}

/* Auth controls */
.auth-controls {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Main auth container */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .auth-card {
    background: rgba(22, 33, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Header section */
.auth-header {
    margin-bottom: 2.5rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .auth-title {
    background: linear-gradient(135deg, #64b5f6, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Sign in section */
.auth-content {
    margin-bottom: 1.5rem;
}

.signin-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.signin-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Google button */
.google-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .google-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .google-btn:hover {
    border-color: var(--accent-highlight);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.15);
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Divider */
.divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .divider span {
    background: rgba(22, 33, 62, 0.95);
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(15, 52, 96, 0.05);
    transform: translateY(-1px);
    text-decoration: none;
}

[data-theme="dark"] .back-btn:hover {
    border-color: var(--accent-highlight);
    color: var(--accent-highlight);
    background: rgba(233, 69, 96, 0.05);
}

/* Message area */
.auth-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.auth-message.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.auth-message.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.auth-message.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .auth-body {
        padding: 0.5rem;
    }
    
    .auth-controls {
        top: 1rem;
        right: 1rem;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .auth-logo {
        width: 64px;
        height: 64px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .signin-title {
        font-size: 1.3rem;
    }
    
    .google-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .back-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
/* Mobile responsive filter controls */
@media (max-width: 576px) {
    .filter-controls .btn-group {
        width: 100%;
        display: flex;
    }
    
    .filter-controls .btn-group .btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}