/* Styles supplémentaires pour garantir l'alignement correct */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}

.center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

#month-title {
    margin: 0 15px;
}

/* Assurez-vous que la div de droite a la même largeur que celle de gauche */
.right-spacer {
    width: 128px;
    /* Ajustez cette valeur selon la largeur du bouton "Ce mois-ci" */
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.theme-button {
    padding: 12px 18px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-button:hover {
    background-color: #2980b9;
}

.theme-button.active {
    background-color: #e74c3c;
}

.navigation-button {
    display: flex;
    padding: 12px 18px;
    background-color: #3A67B5;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 8px;
    /* Ajustez ce padding pour contrôler la taille du bouton */
}

.navigation-button:hover {
    background-color: #e74c3c;
}

.navigation-button .material-icons {
    display: block;
    /* Aide à éviter les problèmes d'alignement */
    color: white;
    line-height: 1;
    font-size: 26px;
    /* Ajustez selon vos besoins */
    margin: 0;
    /* Supprime les marges automatiques */
}

/* Correction spécifique pour l'alignement vertical des icônes Material */
.material-icons {
    position: relative;
    top: 0;
    /* Ajustez cette valeur si nécessaire (essayez -1px ou -2px si encore trop haut) */
}

.top-left-icon {
    position: absolute;
    font-size: 16px;
    top: 2px;
    left: 2px;
    color: #555;
}

td {
    position: relative;
}

.modal-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-button.cancel {
    background-color: #f2f2f2;
    color: #000;
}

.modal-button.confirm {
    background-color: #4CAF50;
    color: white;
}