/**
 * Styles pour le rendu des partitions
 */

/* Conteneur principal */
.wp-xml-music-container {
    margin: 1em 0;
    padding: 1em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

/* Conteneur de la partition */
.wp-xml-music-score {
    width: 100%;
    min-height: 300px;
    background: #fff;
    padding: 20px;
}

/* Messages d'erreur */
.wp-xml-music-error {
    padding: 1em;
    margin: 1em 0;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.wp-xml-music-error pre {
    margin: 0.5em 0 0;
    padding: 0.5em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Styles pour OpenSheetMusicDisplay */
.osmd-canvas {
    background: #fff;
    max-width: 100%;
    height: auto !important;
}

/* Styles pour les contrôles de la partition */
.wp-xml-music-controls {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Styles pour le chargement */
.wp-xml-music-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.wp-xml-music-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
