/* Layout général */
body {
    background-color: #f4f6fb;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}

/* Wrapper */
#wrapper {
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: 230px;
    min-height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    box-shadow: 4px 0 15px rgba(15, 23, 42, 0.5);
}

#sidebar .sidebar-brand {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

#sidebar .nav-link {
    border-radius: .4rem;
    padding: .45rem .75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: all .2s;
}

#sidebar .nav-link span.mr-2 {
    font-size: 1.1rem;
    width: 1.6rem;
}

#sidebar .nav-link:hover {
    background: rgba(249, 250, 251, 0.08);
    color: #e5e7eb;
    padding-left: 1rem;
}

#sidebar .nav-link.active {
    background: #2563eb;
    color: #f9fafb;
}

/* Topbar */
#content .navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Cartes de stats */
.card-stat {
    border: 0;
    border-radius: .75rem;
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-stat .label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}

.card-stat .value {
    font-size: 1.7rem;
    font-weight: 700;
}

.card-stat.pickup { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.card-stat.livre  { background: linear-gradient(135deg,#16a34a,#22c55e); }
.card-stat.retour { background: linear-gradient(135deg,#b91c1c,#f97316); }

/* Cartes Bootstrap */
.card {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

/* Formulaires */
.form-label { font-weight: 500; }
.form-control,
.form-select {
    border-radius: .5rem;
    border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.25);
}

/* Boutons */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    border-radius: 999px;
    padding-inline: 1.4rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* DataTables */
table.dataTable thead th {
    background-color: #111827;
    color: #f9fafb;
    border-bottom: none;
    font-weight: 600;
}

table.dataTable tbody tr:hover {
    background-color: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        width: 220px;
        transform: translateX(-100%);
        transition: transform .2s;
        z-index: 1040;
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #content {
        flex: 1 1 auto;
    }
}
