﻿html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

input, select, textarea, button {
    font-family: inherit;
}

select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Effet au survol et au clic/focus */
    select:hover {
        border-color: #94a3b8;
    }

    select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

input[type="text"] {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    input[type="text"]:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

/* Conteneur principal sous le Header */
.master-layout {
    display: flex;
    align-items: flex-start; /* Aligne parfaitement le haut de la colonne et le haut des cartes */
    gap: 15px; /* Espacement propre entre le menu de gauche et la zone de droite */
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

/* Zone de la colonne de gauche */
.master-sidebar {
    flex-shrink: 0;
}

/* Zone du contenu (Cartes de mois, Administration, etc.) */
.master-content {
    flex: 1;
    min-width: 0;
}

    .master-content > * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

/* Annule l'ancien float sur le composant si conservé côté CSS */
.master-sidebar .sidebar-recap {
    float: none !important;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.custom-modal-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.custom-modal-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.custom-modal-text {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-modal-cancel, .btn-modal-ok {
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modal-cancel {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

    .btn-modal-cancel:hover {
        background-color: #f1f5f9;
        color: #1e293b;
    }

.custom-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    transition: all 0.2s ease;
}

/* Variante Info (Bleu) */
.custom-modal-icon.info {
    background-color: #e6f2fa;
    color: #0073b7;
}

/* Variante Warning (Orange / Ambre) */
.custom-modal-icon.warning {
    background-color: #fef3c7;
    color: #d97706;
}

/* Variante Danger / Critique (Rouge) */
.custom-modal-icon.danger {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Bouton OK par défaut (bleu) */
.btn-modal-ok {
    background-color: #0073b7;
    border: 1px solid #0073b7;
    color: #ffffff;
}

    .btn-modal-ok:hover {
        background-color: #005b92;
    }

    /* Adaptation optionnelle du bouton OK si la modale est en mode danger */
    .btn-modal-ok.danger-btn {
        background-color: #dc2626;
        border: 1px solid #dc2626;
    }

        .btn-modal-ok.danger-btn:hover {
            background-color: #b91c1c;
        }