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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 10px;
}

header h2 {
    color: #764ba2;
    font-size: 1.5em;
}

.menu {
    text-align: center;
}

.menu h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.3em;
}

.menu-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.unit-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.count-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

button {
    padding: 15px 30px;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: translateY(0);
}

.back-button {
    background: #6c757d;
    margin-top: 5px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.back-button:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

.mode {
    text-align: center;
}

.mode h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.content-box {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.content-box h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
}

.word-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.word-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.word-item .en {
    font-weight: 600;
    color: #667eea;
    flex: 1;
    font-size: 1.1em;
}

.word-item .arrow {
    color: #764ba2;
    margin: 0 15px;
    font-size: 1.2em;
}

.word-item .cn {
    color: #333;
    flex: 1;
    text-align: right;
}

.sentence-item {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sentence-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sentence-item .en {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.sentence-item .cn {
    color: #666;
    font-size: 0.95em;
}

.pronounce-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    margin-left: 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(240, 147, 251, 0.4);
    display: inline-block;
    vertical-align: middle;
}

.pronounce-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(240, 147, 251, 0.6);
}

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

.dialogue-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.dialogue-title {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dialogue-line {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dialogue-line:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

.speaker {
    font-weight: 700;
    color: #764ba2;
    min-width: 40px;
    margin-right: 10px;
    font-size: 1em;
}

.dialogue-en {
    flex: 1;
    color: #333;
    font-weight: 600;
    margin-right: 15px;
    font-size: 1em;
}

.dialogue-cn {
    color: #666;
    font-size: 0.9em;
}

.test-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
}

.progress-container {
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    height: 30px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9em;
}

.keyboard-hints {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hint {
    font-size: 0.75em;
    color: #666;
    padding: 4px 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
}

.question-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.question-box p {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-box input {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.question-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.test-buttons {
    display: flex;
    gap: 10px;
}

.test-buttons button {
    flex: 1;
    padding: 15px;
    font-size: 1.1em;
}

.skip-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.skip-button:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.question-box button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.feedback {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1em;
    animation: slideIn 0.3s ease-in;
}

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

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.result-box {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-box p {
    font-size: 1.3em;
    margin: 15px 0;
    color: #333;
}

.result-box span {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2em;
}

.wrong-review-section {
    margin: 20px 0;
}

.wrong-review-section button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrong-review-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.wrong-list {
    max-height: 500px;
    overflow-y: auto;
}

.wrong-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #f5576c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wrong-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.wrong-number {
    font-weight: 700;
    color: #f5576c;
    font-size: 1.1em;
}

.wrong-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.wrong-content strong {
    color: #333;
}

.user-answer {
    color: #dc3545;
}

.correct-answer {
    color: #28a745;
    font-weight: 500;
}

.statistics-content {
    padding: 20px 0;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    opacity: 0.9;
}

.stat-card p {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
}

.chart-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

.chart-section canvas {
    width: 100%;
    height: 300px;
}

.hidden {
    display: none;
}

.history-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-weight: 600;
    color: #333;
}

.sort-controls select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-controls select:hover {
    border-color: #667eea;
}

.sort-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-controls button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-controls span {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 12px 15px;
    color: #333;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    header h2 {
        font-size: 1.2em;
    }
    
    .menu-buttons,
    .unit-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .question-box {
        padding: 20px;
    }
    
    .question-box p {
        font-size: 1.1em;
    }
    
    .test-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .test-info span {
        font-size: 0.9em;
    }
    
    .keyboard-hints {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .hint {
        font-size: 0.75em;
        padding: 4px 10px;
    }
    
    .test-buttons {
        flex-direction: column;
    }
    
    .progress-bar {
        height: 25px;
    }
    
    .word-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    .word-item .arrow {
        margin: 5px 0;
        transform: rotate(90deg);
    }
    
    .word-item .cn {
        text-align: left;
    }
    
    .pronounce-btn {
        padding: 3px 8px;
        margin-left: 5px;
        font-size: 0.8em;
    }
    
    .dialogue-line {
        flex-direction: column;
        padding: 10px;
    }
    
    .speaker {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .dialogue-en {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    table {
        font-size: 0.8em;
    }
    
    .wrong-item {
        padding: 15px;
    }
    
    .wrong-number {
        font-size: 1em;
    }
    
    .wrong-content p {
        font-size: 0.9em;
    }
    
    .history-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls label {
        margin-bottom: 5px;
    }
    
    .pagination-controls {
        padding: 10px;
    }
    
    .pagination-controls button {
        padding: 6px 15px;
        font-size: 0.85em;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card p {
        font-size: 1.5em;
    }
    
    .chart-section {
        padding: 15px;
    }
    
    .chart-section canvas {
        height: 250px;
    }
}
    
    th, td {
        padding: 8px 5px;
    }
    
    .result-box {
        padding: 25px;
    }
    
    .result-box p {
        font-size: 1.1em;
    }
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.light-theme {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --container-bg: white;
    --text-color: #333;
    --header-border: #667eea;
    --header-h1: #667eea;
    --header-h2: #764ba2;
    --menu-h3: #333;
    --word-item-bg: white;
    --word-item-shadow: rgba(0, 0, 0, 0.1);
    --sentence-item-bg: white;
    --sentence-item-shadow: rgba(0, 0, 0, 0.1);
    --dialogue-box-bg: white;
    --dialogue-box-shadow: rgba(0, 0, 0, 0.1);
    --question-box-bg: white;
    --question-box-shadow: rgba(0, 0, 0, 0.1);
    --input-bg: white;
    --input-border: #ddd;
    --input-text: #333;
    --input-placeholder: #999;
    --table-header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --table-header-text: white;
    --table-row-hover: #f8f9fa;
    --table-border: #eee;
    --table-cell-text: #333;
    --stat-card-bg: white;
    --stat-card-shadow: rgba(0, 0, 0, 0.1);
    --stat-card-text: #667eea;
    --wrong-item-bg: white;
    --wrong-item-shadow: rgba(0, 0, 0, 0.1);
    --wrong-correct: #28a745;
    --wrong-wrong: #dc3545;
    --wrong-user: #ffc107;
}

.dark-theme {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --container-bg: #1e1e2e;
    --text-color: #e0e0e0;
    --header-border: #4a4a6a;
    --header-h1: #a0a0c0;
    --header-h2: #8080a0;
    --menu-h3: #e0e0e0;
    --word-item-bg: #2a2a3e;
    --word-item-shadow: rgba(0, 0, 0, 0.3);
    --sentence-item-bg: #2a2a3e;
    --sentence-item-shadow: rgba(0, 0, 0, 0.3);
    --dialogue-box-bg: #2a2a3e;
    --dialogue-box-shadow: rgba(0, 0, 0, 0.3);
    --question-box-bg: #2a2a3e;
    --question-box-shadow: rgba(0, 0, 0, 0.3);
    --input-bg: #2a2a3e;
    --input-border: #4a4a6a;
    --input-text: #e0e0e0;
    --input-placeholder: #6a6a8a;
    --table-header-bg: linear-gradient(135deg, #4a4a6a 0%, #3a3a5a 100%);
    --table-header-text: #e0e0e0;
    --table-row-hover: #3a3a4e;
    --table-border: #3a3a4e;
    --table-cell-text: #c0c0c0;
    --stat-card-bg: #2a2a3e;
    --stat-card-shadow: rgba(0, 0, 0, 0.3);
    --stat-card-text: #a0a0c0;
    --wrong-item-bg: #2a2a3e;
    --wrong-item-shadow: rgba(0, 0, 0, 0.3);
    --wrong-correct: #4caf50;
    --wrong-wrong: #f44336;
    --wrong-user: #ff9800;
}

body.light-theme {
    background: var(--bg-gradient);
}

body.dark-theme {
    background: var(--bg-gradient);
}

body.light-theme .container {
    background: var(--container-bg);
}

body.dark-theme .container {
    background: var(--container-bg);
}

body.light-theme header {
    border-bottom-color: var(--header-border);
}

body.dark-theme header {
    border-bottom-color: var(--header-border);
}

body.light-theme header h1 {
    color: var(--header-h1);
}

body.dark-theme header h1 {
    color: var(--header-h1);
}

body.light-theme header h2 {
    color: var(--header-h2);
}

body.dark-theme header h2 {
    color: var(--header-h2);
}

body.light-theme .menu h3 {
    color: var(--menu-h3);
}

body.dark-theme .menu h3 {
    color: var(--menu-h3);
}

body.light-theme .word-item {
    background: var(--word-item-bg);
    box-shadow: 0 2px 5px var(--word-item-shadow);
}

body.dark-theme .word-item {
    background: var(--word-item-bg);
    box-shadow: 0 2px 5px var(--word-item-shadow);
}

body.light-theme .word-item:hover {
    box-shadow: 0 4px 10px var(--word-item-shadow);
}

body.dark-theme .word-item:hover {
    box-shadow: 0 4px 10px var(--word-item-shadow);
}

body.light-theme .sentence-item {
    background: var(--sentence-item-bg);
    box-shadow: 0 2px 5px var(--sentence-item-shadow);
}

body.dark-theme .sentence-item {
    background: var(--sentence-item-bg);
    box-shadow: 0 2px 5px var(--sentence-item-shadow);
}

body.light-theme .sentence-item:hover {
    box-shadow: 0 4px 10px var(--sentence-item-shadow);
}

body.dark-theme .sentence-item:hover {
    box-shadow: 0 4px 10px var(--sentence-item-shadow);
}

body.light-theme .dialogue-box {
    background: var(--dialogue-box-bg);
    box-shadow: 0 2px 8px var(--dialogue-box-shadow);
}

body.dark-theme .dialogue-box {
    background: var(--dialogue-box-bg);
    box-shadow: 0 2px 8px var(--dialogue-box-shadow);
}

body.light-theme .question-box {
    background: var(--question-box-bg);
    box-shadow: 0 4px 15px var(--question-box-shadow);
}

body.dark-theme .question-box {
    background: var(--question-box-bg);
    box-shadow: 0 4px 15px var(--question-box-shadow);
}

body.light-theme input[type="text"] {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--input-text);
}

body.dark-theme input[type="text"] {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--input-text);
}

body.light-theme input[type="text"]::placeholder {
    color: var(--input-placeholder);
}

body.dark-theme input[type="text"]::placeholder {
    color: var(--input-placeholder);
}

body.light-theme input[type="text"]:focus {
    border-color: #667eea;
}

body.dark-theme input[type="text"]:focus {
    border-color: #4a4a6a;
}

body.light-theme th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
}

body.dark-theme th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
}

body.light-theme tbody tr {
    border-bottom-color: var(--table-border);
}

body.dark-theme tbody tr {
    border-bottom-color: var(--table-border);
}

body.light-theme tbody tr:hover {
    background: var(--table-row-hover);
}

body.dark-theme tbody tr:hover {
    background: var(--table-row-hover);
}

body.light-theme td {
    color: var(--table-cell-text);
}

body.dark-theme td {
    color: var(--table-cell-text);
}

body.light-theme .stat-card {
    background: var(--stat-card-bg);
    box-shadow: 0 4px 15px var(--stat-card-shadow);
}

body.dark-theme .stat-card {
    background: var(--stat-card-bg);
    box-shadow: 0 4px 15px var(--stat-card-shadow);
}

body.light-theme .stat-card h4 {
    color: var(--text-color);
}

body.dark-theme .stat-card h4 {
    color: var(--text-color);
}

body.light-theme .stat-card p {
    color: var(--stat-card-text);
}

body.dark-theme .stat-card p {
    color: var(--stat-card-text);
}

body.light-theme .wrong-item {
    background: var(--wrong-item-bg);
    box-shadow: 0 2px 8px var(--wrong-item-shadow);
}

body.dark-theme .wrong-item {
    background: var(--wrong-item-bg);
    box-shadow: 0 2px 8px var(--wrong-item-shadow);
}

body.light-theme .wrong-correct {
    color: var(--wrong-correct);
}

body.dark-theme .wrong-correct {
    color: var(--wrong-correct);
}

body.light-theme .wrong-wrong {
    color: var(--wrong-wrong);
}

body.dark-theme .wrong-wrong {
    color: var(--wrong-wrong);
}

body.light-theme .wrong-user {
    color: var(--wrong-user);
}

body.dark-theme .wrong-user {
    color: var(--wrong-user);
}

body.light-theme .wrong-content p {
    color: var(--text-color);
}

body.dark-theme .wrong-content p {
    color: var(--text-color);
}

body.light-theme select {
    background: var(--input-bg);
    color: var(--input-text);
    border: 2px solid var(--input-border);
}

body.dark-theme select {
    background: var(--input-bg);
    color: var(--input-text);
    border: 2px solid var(--input-border);
}

body.light-theme select option {
    background: var(--container-bg);
    color: var(--input-text);
}

body.dark-theme select option {
    background: var(--container-bg);
    color: var(--input-text);
}

@media (max-width: 600px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        top: 15px;
        right: 15px;
    }
}
