/* GoethePractice Shared Components */

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.theme-toggle:hover {
    border-color: var(--goethe-red);
    transform: scale(1.05);
}

/* Auth Bar in Header */
.auth-bar .btn {
    font-size: 0.85rem;
    padding: 6px 14px;
}

/* Question Navigator Buttons */
#navigator-grid button {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
#navigator-grid button:hover {
    border-color: var(--goethe-red);
}
#navigator-grid button.current {
    outline: 2px solid var(--goethe-red);
}
#navigator-grid button.answered {
    background: #28a745;
    color: white;
    border-color: #28a745;
}
#navigator-grid button.flagged {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}
#navigator-grid button.answered.flagged {
    background: linear-gradient(135deg, #28a745 50%, #ffc107 50%);
    color: white;
}

/* Flag button active state */
#flag-btn.flagged {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}

/* Dark mode card overrides */
[data-theme="dark"] .card,
[data-theme="dark"] .question-card,
[data-theme="dark"] .mode-selection,
[data-theme="dark"] .test-section,
[data-theme="dark"] .results-card {
    background: var(--bg-card) !important;
    color: var(--text-body);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #2a2a2a;
    color: #f0f0f0;
    border-color: #3a3a3a;
}

[data-theme="dark"] .section-info {
    background: #2a2a2a !important;
}

[data-theme="dark"] .section-info p,
[data-theme="dark"] .section-info h3 {
    color: #f0f0f0;
}
