/* Chord Progression Quiz Styles - Dark Theme */
#chord-quiz-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff !important;
}

.quiz-container {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 30px;
}

.quiz-container h2 {
    text-align: center;
    color: #ffffff !important;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mode Selection */
.mode-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-selection h3 {
    text-align: center;
    color: #ffffff !important;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.3em;
}

.mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.mode-btn strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #ffffff;
}

.mode-btn p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.9em;
    color: #f0f0f0;
}

/* Name Entry */
.name-entry {
    text-align: center;
    padding: 40px 20px;
}

.name-entry h3 {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-weight: 600;
}

#player-name {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 15px;
    background: #2a2a2a;
    color: #ffffff;
}

#player-name:focus {
    outline: none;
    border-color: #667eea;
    background: #333;
}

#player-name::placeholder {
    color: #888;
}

#start-quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

#start-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Quiz Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.progress {
    font-weight: 600;
    color: #ffffff !important;
    font-size: 1.05em;
}

.score {
    font-weight: 600;
    color: #8b9cff;
    font-size: 1.1em;
}

/* Question Container */
.question-container h3 {
    color: #ffffff !important;
    font-size: 1.3em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #555;
    border-radius: 8px;
    padding: 15px;
    font-size: 1em;
    color: #000000 !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.option-btn.correct {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: #ffffff !important;
}

.option-btn.wrong {
    background: linear-gradient(135deg, #dc3545 0%, #e85d6a 100%);
    border-color: #dc3545;
    color: #ffffff !important;
}

/* Feedback */
.feedback {
    margin-top: 20px;
}

.correct-feedback {
    color: #5dffb8;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.wrong-feedback {
    color: #ff6b7a;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.explanation {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #f0f0f0 !important;
    font-weight: 500;
    border: 1px solid #444;
}

#next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

#next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Results */
.results {
    text-align: center;
    padding: 20px;
}

.results h3 {
    color: #ffffff !important;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.final-score {
    margin: 30px 0;
}

.score-big {
    font-size: 3em;
    font-weight: bold;
    color: #8b9cff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(139, 156, 255, 0.5);
}

.percentage {
    font-size: 1.5em;
    color: #f0f0f0 !important;
    font-weight: 600;
}

.result-message {
    font-size: 1.3em;
    margin: 20px 0;
    color: #ffffff !important;
    font-weight: 500;
}

.results button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.results button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

#retry-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

#retry-btn:hover {
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
}

#home-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

#home-btn:hover {
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4) !important;
}

/* High Scores */
.high-scores {
    padding: 20px;
}

.high-scores h3 {
    text-align: center;
    color: #ffffff !important;
    margin-bottom: 20px;
    font-weight: 700;
}

.mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    color: #f0f0f0;
    font-weight: 500;
}

.tab-btn:hover {
    background: #333;
    border-color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

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

.scores-table th,
.scores-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #f0f0f0 !important;
    font-weight: 500;
}

.scores-table thead th {
    color: #ffffff !important;
    font-weight: 600;
}

.scores-table tbody tr:hover {
    background: #333;
}

.scores-table tbody tr:nth-child(1) td:first-child {
    font-weight: bold;
    color: #ffd700 !important;
    font-size: 1.2em;
}

.scores-table tbody tr:nth-child(2) td:first-child {
    font-weight: bold;
    color: #c0c0c0 !important;
    font-size: 1.1em;
}

.scores-table tbody tr:nth-child(3) td:first-child {
    font-weight: bold;
    color: #cd7f32 !important;
    font-size: 1.1em;
}

#scores-list p {
    text-align: center;
    color: #aaa;
    padding: 40px 20px;
}

#back-home-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

#back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.high-scores-preview {
    margin-top: 30px;
    text-align: center;
}

.view-scores-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.view-scores-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
    }
    
    .quiz-container h2 {
        font-size: 1.5em;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .mode-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .scores-table {
        font-size: 0.9em;
    }
    
    .scores-table th,
    .scores-table td {
        padding: 8px;
    }
}