/* =============================================================
   PORTAIL SAWKI — Feuille de styles globale
   Déplacé depuis base.html.twig pour centraliser et mettre en cache
   ============================================================= */

/* -------------------------
   Base
------------------------- */
body {
    background: #f5f7fb;
}

/* -------------------------
   Layout — suppression sidebar
------------------------- */
.main-content {
    margin-left: 0 !important;
}

.page-content {
    padding-top: 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar-menu {
    display: none !important;
}

body[data-sidebar-size] .main-content,
body.vertical-sidebar-enable .main-content {
    margin-left: 0 !important;
}

body.vertical-sidebar-enable .navbar-menu {
    display: none !important;
}

.vertical-overlay {
    display: none !important;
}

/* -------------------------
   Navbar principale Sawki
------------------------- */
.sawki-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sawki-navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: -0.3px;
}

.sawki-navbar-brand i {
    font-size: 1.3rem;
}

.sawki-navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sawki-navbar-user {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
}

.sawki-navbar-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: #dee2e6;
}

.sawki-btn-logout {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid #ef4444;
    background: transparent;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.sawki-btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

@media (max-width: 576px) {
    .sawki-navbar-user {
        display: none;
    }
    .sawki-navbar-divider {
        display: none;
    }
}

/* -------------------------
   Cartes
------------------------- */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* -------------------------
   Boutons
------------------------- */
.btn {
    border-radius: 12px;
    font-weight: 500;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(64, 81, 137, 0.2);
}

/* -------------------------
   Tableaux
------------------------- */
.table {
    vertical-align: middle;
}

.table thead th {
    background: #f8f9fc;
    color: #495057;
    font-weight: 600;
    border-bottom: none;
}

/* -------------------------
   DataTables
------------------------- */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 6px;
    margin-bottom: 5px;
}

/* -------------------------
   Modals
------------------------- */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

/* -------------------------
   Badges & Alertes
------------------------- */
.badge {
    font-weight: 500;
}

.alert {
    border: none;
    border-radius: 16px;
}

/* -------------------------
   Bouton retour en haut
------------------------- */
#back-to-top {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* -------------------------
   Footer
------------------------- */
.sawki-footer {
    margin-top: 40px;
    padding: 18px 24px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.sawki-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sawki-footer-sep {
    color: #cbd5e1;
}

.sawki-footer-version {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}
