/* CSS spécifique pour la modale de paramètres */
/* Respect du design system existant : Couleurs plates, bordures simples */

/* Reset minimal pour s'assurer que le contenu de la modale est propre */
/* .settings-modal-content hérite des styles de .modal-content de style.css */

/* Titres de sections */
.subsettings-title {
    font-size: 1.1rem;
    color: #2c3e50;
    border-bottom: 1px solid #dfe6e9;
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Espacement standard */
.settings-divider {
    height: 1px;
    background-color: #ecf0f1;
    margin: 20px 0;
}

/* Groupe de checkbox aligné */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto !important;
    margin: 0;
}

.checkbox-row label {
    margin: 0;
    font-weight: normal;
}

/* Boutons secondaires (Actions) */
.secondary-action-btn {
    width: 100%;
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #dfe6e9;
    padding: 9px 10px;
    /* 9px + 1px border = 10px visual padding like submit-btn */
    border-radius: 4px;
    /* Correspond au radius de style.css (.submit-btn) */
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-action-btn:hover {
    background: #e1e8ef;
    border-color: #cbd5e0;
}

.secondary-action-btn i {
    font-size: 1.1rem;
    color: #f39c12;
    /* Orange du thème */
}

/* Zone de danger */
.danger-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e74c3c;
    /* Rouge du thème */
}

.danger-title {
    color: #e74c3c;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.danger-text {
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: left;
}

.danger-btn {
    width: 100%;
    background: #e74c3c;
    /* Rouge par défaut */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: #c0392b;
    /* Encore plus rouge (foncé) au survol */
}

/* Styles pour la confirmation de suppression */
.danger-input-label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.danger-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.danger-actions-row {
    display: flex;
    gap: 10px;
}

.danger-actions-row .secondary-action-btn,
.danger-actions-row .danger-btn {
    flex: 1;
    margin: 0;
    /* Override any bottom margin */
    justify-content: center;
}

/* Boutons Import/Export Données */
.data-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.data-btn {
    flex: 1;
    background: #ecf0f1;
    /* Gris très clair */
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.data-btn:hover {
    background: #e1e8ef;
    /* Même hover que secondary-action-btn */
    border-color: #cbd5e0;
    color: #2c3e50;
}

.data-btn i {
    color: #f39c12;
    /* Orange du thème, comme au-dessus */
    font-size: 1.1rem;
}

/* Feedback message (reprise du style inline précédent mais en classe) */
.feedback-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
    /* Caché par défaut */
}

.feedback-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.feedback-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.feedback-message.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}