/* ============================================
   STYLES SPÉCIFIQUES - PAGE MUSICALITY
   ============================================ */

.user-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.user-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.file-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-select {
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: white;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-select:hover {
    background: #667eea;
    color: white;
}

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

.mode-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: white;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.visualization-area {
    min-height: 300px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.current-time-display {
    font-size: 4em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-passage-display {
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-indicator {
    font-size: 6em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.time-indicator.pulse {
    animation: pulse-large 0.5s ease;
}

@keyframes pulse-large {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.training-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.training-instructions {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.training-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 4em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.training-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.training-button:active {
    transform: scale(0.95);
}

.training-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-message {
    font-size: 2em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.feedback-message.success {
    color: #28a745;
}

.feedback-message.error {
    color: #e74c3c;
}

.feedback-message.hidden {
    opacity: 0;
}

.score-display {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.score-item {
    text-align: center;
    color: white;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
}

.score-label {
    font-size: 1em;
    opacity: 0.9;
}

.audio-controls-user {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.audio-player-user {
    width: 100%;
    height: 50px;
}

.playback-controls-user {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.next-beat-info {
    text-align: center;
    color: white;
    font-size: 1.1em;
    margin-top: 20px;
}

.file-input {
    display: none;
}

/* Styles pour le tableau de sélection de musique */
.table-container {
    overflow-x: auto;
}

.music-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.music-table thead {
    background: #667eea;
    color: white;
}

.music-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

.music-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.music-table tbody tr:hover {
    background: #f8f9fa;
}

.music-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 40px !important;
    font-style: italic;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 10px;
}

.status-vide {
    background: #e9ecef;
    color: #666;
}

.status-en-cours {
    background: #fff3cd;
    color: #856404;
}

.status-fait {
    background: #d4edda;
    color: #155724;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
}

.youtube-player-container-user {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

#youtube-player {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: block;
}

.youtube-player-container-user iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

