/* ============================================================================
   IMAGILIRE LIBRE - Export / Import Paramètres
   Styles pour la section export/import dans le panneau de configuration
   ============================================================================ */

/* ── Section export/import dans le panneau paramètres ───────────────────────── */
.settings-ei-section {
    padding: 0.75rem;
    background: #e8f6f6;
    border-radius: var(--border-radius, 6px);
    border: 1px solid #c4e9ea;
    margin-bottom: 1.5rem;
}

.settings-ei-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.settings-ei-title i {
    color: var(--primary-color, #36B1B3);
}

/* ── Boutons export / import ────────────────────────────────────────────────── */
.settings-ei-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.settings-ei-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    color: white;
    border: none;
    border-radius: var(--border-radius, 6px);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-ei-btn--export {
    background: var(--success-color, #2ecc71);
}

.settings-ei-btn--export:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.settings-ei-btn--export:active {
    background: #229954;
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.settings-ei-btn--import {
    background: var(--primary-color, #36B1B3);
}

.settings-ei-btn--import:hover {
    background: #2a9799;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.settings-ei-btn--import:active {
    background: #228688;
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* ── Zone de feedback ───────────────────────────────────────────────────────── */
.settings-ei-feedback {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: var(--border-radius, 6px);
    margin-bottom: 0.4rem;
    text-align: center;
    line-height: 1.3;
}

.settings-ei-feedback--success {
    background: #d4edda;
    color: #1a7a3b;
    border: 1px solid var(--success-color, #2ecc71);
}

.settings-ei-feedback--error {
    background: #f8d7da;
    color: var(--error-color, #e74c3c);
    border: 1px solid var(--error-color, #e74c3c);
}

.settings-ei-feedback--warn {
    background: #fff3cd;
    color: #856404;
    border: 1px solid var(--secondary-color, #F7B731);
}

/* ── Dark mode ───────────────────────────────────────────────────────────────── */
body.dark-mode .settings-ei-section {
    background: #1a2a40;
    border-color: #2e3a4e;
}

body.dark-mode .settings-ei-title {
    color: #e0e6f0;
}

body.dark-mode .settings-ei-feedback--success {
    background: #1a3a2a;
    color: #6ee09a;
    border-color: #27ae60;
}

body.dark-mode .settings-ei-feedback--error {
    background: #3a1a1a;
    color: #f08080;
    border-color: #c0392b;
}

body.dark-mode .settings-ei-feedback--warn {
    background: #2a2000;
    color: #f0c060;
    border-color: #c07800;
}

/* ── Responsive mobile ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .settings-ei-buttons {
        flex-direction: column;
        gap: 0.45rem;
    }

    .settings-ei-btn {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .settings-ei-section {
        padding: 0.65rem;
    }
}

/* ── Responsive tablette ─────────────────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
    .settings-ei-btn {
        font-size: 0.88rem;
        padding: 0.62rem 0.9rem;
    }
}
