/* =========================================================
   PARKING ENTREPRISE 3D
   STYLE PRINCIPAL
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #e8eef7;
    overflow: hidden;
}


/* =========================================================
   BARRE DU HAUT
========================================================= */

.topbar {
    height: 72px;
    width: 100%;
    background: #0b1728;
    border-bottom: 1px solid #1c3048;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 26px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1677ff;
    border-radius: 10px;

    font-size: 21px;
    font-weight: bold;
    color: white;
}

.logo h1 {
    font-size: 17px;
    font-weight: 600;
}

.logo span {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    color: #7f91a8;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.status-online {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    color: #9aacbf;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 10px rgba(53, 208, 127, 0.5);
}

.top-button {
    border: 1px solid #2a405b;
    background: #101f33;
    color: #c8d4e2;

    padding: 9px 14px;
    border-radius: 7px;

    cursor: pointer;
    font-size: 12px;

    transition: 0.2s;
}

.top-button:hover {
    background: #172b44;
    border-color: #3b5b7e;
}


/* =========================================================
   STRUCTURE PRINCIPALE
========================================================= */

.app {
    height: calc(100vh - 68px);
    display: flex;
    width: 100%;
    min-height: 0;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 225px;
    flex-shrink: 0;

    background: #091625;
    border-right: 1px solid #1b2c42;

    display: flex;
    flex-direction: column;

    padding: 24px 14px;
}

.menu-title {
    color: #657990;
    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.2px;

    margin: 0 10px 12px;
}

.menu-button {
    width: 100%;
    border: none;
    background: transparent;

    color: #8193a8;

    padding: 11px 12px;
    margin-bottom: 4px;

    border-radius: 7px;

    text-align: left;
    cursor: pointer;

    font-size: 13px;

    display: flex;
    align-items: center;
    gap: 11px;

    transition: 0.2s;
}

.menu-button span {
    width: 22px;
    text-align: center;
}

.menu-button:hover {
    background: #102239;
    color: #dce8f5;
}

.menu-button.active {
    background: #123968;
    color: #ffffff;
}

.sidebar-bottom {
    margin-top: auto;
}

.parking-summary {
    background: #0d1d30;
    border: 1px solid #1d334b;

    border-radius: 9px;

    padding: 15px;
}

.summary-title {
    font-size: 9px;
    letter-spacing: 1px;

    color: #6e829a;

    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;

    font-size: 11px;
    color: #9bacbf;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row strong {
    color: #e3ebf5;
}


/* =========================================================
   LÉGENDES
========================================================= */

.legend {
    display: inline-block;

    width: 8px;
    height: 8px;

    border-radius: 2px;

    margin-right: 5px;
}

.legend.green {
    background: #2ed47a;
}

.legend.red {
    background: #ff5364;
}

.legend.orange {
    background: #f5a742;
}


/* =========================================================
   CONTENU
========================================================= */

.content {
    flex: 1;
    min-width: 0;

    overflow: auto;

    padding: 26px 28px 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 22px;
}

.breadcrumb {
    color: #61758e;
    font-size: 11px;

    margin-bottom: 7px;
}

.page-header h2 {
    font-size: 25px;
    font-weight: 600;
}

.page-header p {
    color: #71849b;
    font-size: 12px;

    margin-top: 7px;
}

.header-actions {
    display: flex;
    gap: 7px;
}

.floor-button {
    border: 1px solid #263d57;

    background: #0c1b2d;
    color: #8093a8;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 11px;
    cursor: pointer;

    transition: 0.2s;
}

.floor-button:hover {
    background: #13263d;
    color: #b9c9da;
}

.floor-button.active {
    background: #1559a0;
    color: white;

    border-color: #2479d4;
}


/* =========================================================
   CARTES STATISTIQUES
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 16px;
}

.stat-card {
    background: #0b192b;

    border: 1px solid #1d3249;

    border-radius: 9px;

    min-height: 82px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 13px;
}

.stat-icon {
    width: 38px;
    height: 38px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}

.stat-icon.blue {
    background: rgba(32, 119, 230, 0.15);
}

.stat-icon.green {
    background: rgba(46, 212, 122, 0.12);
}

.stat-icon.red {
    background: rgba(255, 83, 100, 0.12);
}

.stat-icon.orange {
    background: rgba(245, 167, 66, 0.12);
}

.stat-card span {
    display: block;

    font-size: 11px;
    color: #71859b;

    margin-bottom: 4px;
}

.stat-card strong {
    font-size: 20px;
    font-weight: 600;
}


/* =========================================================
   ZONE PARKING
========================================================= */

.parking-wrapper {
    position: relative;

    background: #091727;

    border: 1px solid #1d334a;

    border-radius: 10px;

    overflow: hidden;

    min-height: 550px;
}

.parking-toolbar {
    height: 48px;

    background: #0d1d30;

    border-bottom: 1px solid #1c3148;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 15px;

    position: relative;
    z-index: 5;
}

.parking-toolbar strong {
    font-size: 10px;

    letter-spacing: 1px;

    color: #a7b7c9;
}

.parking-toolbar > div:first-child span {
    color: #63788f;

    font-size: 10px;

    margin-left: 8px;
}

.controls-help {
    display: flex;
    gap: 15px;

    color: #637990;

    font-size: 10px;
}


/* =========================================================
   CANVAS 3D
========================================================= */

#parking3d {
    width: 100%;
    height: 510px;

    position: relative;

    background:
        radial-gradient(
            circle at center,
            #122b42 0%,
            #091827 55%,
            #06101c 100%
        );

    overflow: hidden;
}

#parking3d canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;

    outline: none;
}


/* =========================================================
   CHARGEMENT
========================================================= */

#loading {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;

    background: #091727;

    color: #91a4b9;

    font-size: 12px;

    z-index: 20;
}

.loading-spinner {
    width: 28px;
    height: 28px;

    border: 3px solid #1b3652;

    border-top-color: #2682e8;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   LÉGENDE BASSE
========================================================= */

.legend-bar {
    height: 45px;

    background: #0b192a;

    border-top: 1px solid #1c3148;

    display: flex;

    align-items: center;

    gap: 23px;

    padding: 0 15px;
}

.legend-item {
    color: #8295aa;

    font-size: 10px;

    display: flex;

    align-items: center;

    gap: 6px;
}

.legend-box {
    width: 11px;
    height: 11px;

    border-radius: 2px;
}

.legend-box.free {
    background: #2ed47a;
}

.legend-box.occupied {
    background: #ff5364;
}

.legend-box.reserved {
    background: #f5a742;
}

.legend-box.visitor {
    background: #3489e8;
}

.legend-box.disabled {
    background: #697888;
}


/* =========================================================
   PANNEAU D'INFORMATION
========================================================= */

.information-panel {
    margin-top: 14px;

    background: #0b192b;

    border: 1px solid #1d334a;

    border-radius: 9px;

    min-height: 86px;
}

.information-empty {
    min-height: 86px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px 18px;
}

.empty-icon {
    width: 40px;
    height: 40px;

    background: #10253c;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.information-empty strong {
    display: block;

    font-size: 12px;

    margin-bottom: 4px;
}

.information-empty p {
    color: #71859b;

    font-size: 11px;
}


/* =========================================================
   PANNEAU PLACE
========================================================= */

.spot-panel {
    position: fixed;

    top: 92px;
    right: 22px;

    width: 290px;

    background: #0b192b;

    border: 1px solid #29415d;

    border-radius: 10px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45);

    padding: 18px;

    z-index: 100;

    transform: translateX(340px);

    transition: transform 0.25s ease;
}

.spot-panel.visible {
    transform: translateX(0);
}

.close-panel {
    position: absolute;

    right: 12px;
    top: 10px;

    width: 25px;
    height: 25px;

    border: none;

    background: transparent;

    color: #73879d;

    font-size: 22px;

    cursor: pointer;
}

.close-panel:hover {
    color: white;
}

.spot-panel-header {
    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 16px;

    border-bottom: 1px solid #1b3046;
}

.spot-number {
    width: 45px;
    height: 45px;

    border-radius: 8px;

    background: #123761;

    color: #65adff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: bold;
}

.spot-panel h3 {
    font-size: 15px;

    margin-bottom: 4px;
}

#panelSpotStatus {
    color: #42d887;

    font-size: 10px;
}

.panel-info {
    padding: 15px 0;

    border-bottom: 1px solid #1b3046;
}

.info-line {
    display: flex;

    justify-content: space-between;

    margin-bottom: 11px;

    font-size: 11px;
}

.info-line:last-child {
    margin-bottom: 0;
}

.info-line span {
    color: #71859b;
}

.info-line strong {
    color: #d7e1ec;

    text-align: right;

    max-width: 150px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-actions {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding-top: 15px;
}

.action-button {
    width: 100%;

    border-radius: 6px;

    padding: 10px;

    cursor: pointer;

    font-size: 11px;
}

.action-button.primary {
    border: 1px solid #237bd3;

    background: #1261aa;

    color: white;
}

.action-button.primary:hover {
    background: #1770c4;
}

.action-button.secondary {
    border: 1px solid #29435e;

    background: #101f32;

    color: #9cafc2;
}

.action-button.secondary:hover {
    background: #162b43;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .controls-help span:nth-child(2),
    .controls-help span:nth-child(3) {
        display: none;
    }

}


@media (max-width: 800px) {

    .sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .menu-title,
    .menu-button:not(.active)::after,
    .parking-summary,
    .menu-button {
        font-size: 0;
    }

    .menu-button {
        justify-content: center;
    }

    .menu-button span {
        font-size: 17px;
    }

    .content {
        padding: 18px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .topbar {
        padding: 0 12px;
    }

    .status-online {
        display: none;
    }

    .content {
        padding: 12px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .parking-wrapper {
        min-height: 480px;
    }

    #parking3d {
        height: 430px;
    }

    .legend-bar {
        gap: 10px;
        overflow-x: auto;
    }

}#parking3d {
    width: 100%;
    height: calc(100vh - 64px);
    min-height: 500px;
    display: block;
    position: relative;
    overflow: hidden;
}

#parking3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
/* =========================================================
   COMPATIBILITÉ AVEC LE PANNEAU DE PLACE ACTUEL
========================================================= */

#spotPanel {
    position: fixed;
    top: 92px;
    right: 22px;
    width: 290px;
    background: #0b192b;
    border: 1px solid #29415d;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 18px;
    z-index: 100;
    color: #e8eef7;
}

#closePanel {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 25px;
    height: 25px;
    border: none;
    background: transparent;
    color: #73879d;
    font-size: 22px;
    cursor: pointer;
}

#closePanel:hover {
    color: white;
}

#spotPanel h2 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #ffffff;
}

#spotPanel p {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px;
    font-size: 12px;
    color: #71859b;
}

#spotPanel p span {
    color: #d7e1ec;
    font-weight: 500;
    text-align: right;
}

#reserveButton {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid #237bd3;
    border-radius: 6px;
    background: #1261aa;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#reserveButton:hover {
    background: #1770c4;
    transform: translateY(-1px);
}

#reserveButton:active {
    transform: translateY(0);
}
/* =========================================================
   NOUVEAU DASHBOARD — STYLE PREMIUM
========================================================= */

:root {
    --bg-main: #070b12;
    --bg-sidebar: #0b1018;
    --bg-card: #0e151f;
    --bg-card-hover: #121c28;

    --border: #1c2836;
    --border-light: #263545;

    --text-main: #f1f5f9;
    --text-secondary: #8c9bad;
    --text-muted: #5f6f82;

    --accent: #3b82f6;
    --accent-hover: #60a5fa;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Fond général */

body {
    background: var(--bg-main);
    color: var(--text-main);
}

/* Barre supérieure */

.topbar {
    height: 68px;

    background: rgba(11, 16, 24, 0.96);

    border-bottom: 1px solid var(--border);

    padding: 0 28px;

    backdrop-filter: blur(12px);
}

/* Logo */

.logo {
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    border-radius: 10px;

    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.25);
}

.logo h1 {
    font-size: 16px;
    letter-spacing: -0.2px;
}

.logo span {
    color: var(--text-muted);
    font-size: 11px;
}

/* Statut système */

.status-online {
    color: var(--text-secondary);
}

.status-dot {
    width: 7px;
    height: 7px;

    background: var(--success);

    box-shadow:
        0 0 12px rgba(34, 197, 94, 0.6);
}

/* Bouton supérieur */

.top-button {
    background: #101823;

    border: 1px solid var(--border-light);

    color: #cbd5e1;

    border-radius: 8px;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.top-button:hover {
    background: #162131;

    border-color: #38506a;

    transform: translateY(-1px);
}

/* Structure */

.app {
    height: calc(100vh - 68px);
}

/* Sidebar */

.sidebar {
    width: 235px;

    background: var(--bg-sidebar);

    border-right: 1px solid var(--border);

    padding: 24px 16px;
}

/* Titres menu */

.menu-title {
    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: 1.4px;

    margin: 0 10px 12px;
}

/* Boutons menu */

.menu-button {
    color: var(--text-secondary);

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 4px;

    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.menu-button:hover {
    background: #111a25;

    color: #e2e8f0;

    transform: translateX(2px);
}

.menu-button.active {
    background:
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.18),
            rgba(59, 130, 246, 0.05)
        );

    color: #ffffff;

    border-left: 2px solid var(--accent);

    padding-left: 11px;
}

/* Résumé parking */

.parking-summary {
    background: #0d151f;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 16px;
}

/* Contenu */

.content {
    background: var(--bg-main);

    padding: 28px 30px 40px;
}

/* En-tête */

.page-header {
    margin-bottom: 24px;
}

.breadcrumb {
    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 0.3px;
}

.page-header h2 {
    font-size: 27px;

    font-weight: 600;

    letter-spacing: -0.7px;
}

.page-header p {
    color: var(--text-secondary);

    font-size: 12px;
}

/* Boutons niveaux */

.floor-button {
    background: #0d151f;

    border: 1px solid var(--border);

    color: var(--text-secondary);

    border-radius: 8px;

    padding: 9px 14px;
}

.floor-button:hover {
    background: #131e2a;

    color: #e2e8f0;

    border-color: var(--border-light);
}

.floor-button.active {
    background: #1d4ed8;

    border-color: #3b82f6;

    color: white;

    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.2);
}

/* =========================================================
   CARTES STATISTIQUES
========================================================= */

.stats {
    gap: 14px;

    margin-bottom: 18px;
}

.stat-card {
    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 12px;

    min-height: 92px;

    padding: 17px;

    transition:
        border-color 0.2s,
        transform 0.2s;
}

.stat-card:hover {
    border-color: var(--border-light);

    transform: translateY(-2px);
}

.stat-card span {
    color: var(--text-muted);
}

.stat-card strong {
    color: var(--text-main);

    font-size: 22px;
}

/* =========================================================
   ZONE 3D
========================================================= */

.parking-wrapper {
    background: #0a111a;

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.parking-toolbar {
    height: 50px;

    background: #0d151f;

    border-bottom: 1px solid var(--border);

    padding: 0 17px;
}

.parking-toolbar strong {
    color: #dbe4ee;
}

.controls-help {
    color: var(--text-muted);
}

/* Légende */

.legend-bar {
    background: #0c141e;

    border-top: 1px solid var(--border);

    height: 46px;
}

.legend-item {
    color: var(--text-secondary);
}

/* =========================================================
   PANNEAU D'INFORMATION
========================================================= */

.information-panel {
    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 12px;
}

/* =========================================================
   BOUTONS D'ACTION
========================================================= */

.action-button {
    border-radius: 8px;

    transition:
        background 0.2s,
        transform 0.2s;
}

.action-button:hover {
    transform: translateY(-1px);
}
/* AJUSTEMENT AFFICHAGE 3D */

.app {
    height: calc(100vh - 68px);
    min-height: 0;
}

.content {
    min-height: 0;
}

.sidebar {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

#parking3d {
    min-height: 600px;
}
/* =========================================================
   AFFICHAGE PARKING 3D
========================================================= */

.app {
    height: calc(100vh - 68px);
    min-height: 0;
}

.sidebar {
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}

#parking3d {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

#parking3d canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#parking3d {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
/* =========================================================
   DASHBOARD — BARRE SUPÉRIEURE PREMIUM
========================================================= */

.topbar {
    height: 68px;
    padding: 0 28px;
    background: #0b1018;
    border-bottom: 1px solid #1c2836;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.logo {
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.logo h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.logo span {
    color: #64748b;
    font-size: 11px;
}

.status-online {
    color: #94a3b8;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.top-button {
    background: #101823;
    border: 1px solid #263545;
    color: #cbd5e1;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.top-button:hover {
    background: #162131;
    border-color: #38506a;
    transform: translateY(-1px);
}
/* =========================================================
   DASHBOARD — SIDEBAR PREMIUM
========================================================= */

.sidebar {
    width: 235px;
    background: #0b1018;
    border-right: 1px solid #1c2836;
    padding: 24px 16px;
}

.menu-title {
    color: #5f6f82;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
    margin: 0 10px 12px;
}

.menu-button {
    width: 100%;
    color: #8c9bad;
    background: transparent;
    border: none;
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 4px;
    text-align: left;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.menu-button:hover {
    background: #111a25;
    color: #e2e8f0;
    transform: translateX(2px);
}

.menu-button.active {
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.18),
        rgba(59, 130, 246, 0.05)
    );
    color: #ffffff;
    border-left: 2px solid #3b82f6;
    padding-left: 11px;
}

.menu-button span {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    margin-right: 8px;
    opacity: 0.85;
}
/* =========================================================
   DASHBOARD — CARTES STATISTIQUES PREMIUM
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    position: relative;
    background: #0e151f;
    border: 1px solid #1c2836;
    border-radius: 12px;
    min-height: 92px;
    padding: 17px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.stat-card:hover {
    border-color: #30445a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.stat-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    color: #f1f5f9;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}
.stat-card {
    position: relative;
    background: #0e151f;
    border: 1px solid #1c2836;
    border-radius: 12px;
    min-height: 92px;
    padding: 17px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.stat-card:hover {
    border-color: #30445a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.stat-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    color: #f1f5f9;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}
/* =========================================================
   DASHBOARD — ZONE PARKING 3D
========================================================= */

#parking3d {
    background: #0a111a;
    border-left: 1px solid #1c2836;
}

#parking3d canvas {
    display: block;
}
/* =========================================================
   DASHBOARD — PANNEAU PLACE SÉLECTIONNÉE
========================================================= */

.information-panel {
    background: rgba(14, 21, 31, 0.96);
    border: 1px solid #263545;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.information-panel h3 {
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 600;
}

.information-panel p {
    color: #8c9bad;
}

.information-panel strong {
    color: #e2e8f0;
}

.action-button {
    border-radius: 8px;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.action-button:hover {
    transform: translateY(-1px);
}
/* =========================================================
   DASHBOARD — AIDE NAVIGATION 3D
========================================================= */

#instructions {
    position: absolute;
    top: 18px;
    left: 18px;

    padding: 12px 15px;

    background: rgba(10, 17, 26, 0.88);
    border: 1px solid #263545;
    border-radius: 10px;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    z-index: 10;

    pointer-events: none;
}

#instructions strong {
    display: block;

    margin-bottom: 4px;

    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
}

#instructions br {
    line-height: 1.4;
}
/* =========================================================
   DASHBOARD — RÉSUMÉ PARKING
========================================================= */

.parking-summary {
    margin-top: 24px;
    padding: 15px;
    background: #0e151f;
    border: 1px solid #1c2836;
    border-radius: 10px;
}

.parking-summary .menu-title {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 14px;
}

.parking-summary > div:not(.menu-title) {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 0;

    color: #64748b;
    font-size: 11px;
}

.parking-summary strong {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}

.parking-summary span {
    color: #64748b;
}
/* =========================================================
   DASHBOARD — INDICATEURS KPI
========================================================= */

.stat-card {
    padding-left: 20px;
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;

    width: 3px;

    border-radius: 3px;
    background: #3b82f6;
}

/* Couleurs selon l'indicateur */

.stat-card:nth-child(1)::before {
    background: #22c55e;
}

.stat-card:nth-child(2)::before {
    background: #ef4444;
}

.stat-card:nth-child(3)::before {
    background: #f59e0b;
}

.stat-card:nth-child(4)::before {
    background: #3b82f6;
}
/* =========================================================
   LABOMGD — SIDEBAR BLANCHE
========================================================= */

.sidebar {
    background: #ffffff;
    border-right: 1px solid #d9dee7;
}

.sidebar .menu-title {
    color: #7a8492;
}

.sidebar .menu-button {
    color: #20252d;
    background: transparent;
}

.sidebar .menu-button:hover {
    background: #f1f5f9;
    color: #111827;
}

.sidebar .menu-button.active {
    background: #eaf3ff;
    color: #1677ff;
    border-left: 2px solid #1677ff;
}

.sidebar .parking-summary {
    background: #ffffff;
    border: 1px solid #d9dee7;
}

.sidebar .parking-summary strong {
    color: #111827;
}

.sidebar .parking-summary span {
    color: #6b7280;
}
/* =========================================================
   CONTOUR GÉNÉRAL
========================================================= */

body {
    background: #ffffff;
}

.app {
    border: 2px solid #ffffff;
}
/* =========================================================
   LABOMGD — 4 INDICATEURS DU DASHBOARD
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    width: 100%;
    margin: 18px 0;
    grid-column: auto;
}

.stat-card {
    min-height: 90px;

    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 10px;

    padding: 16px;

    color: #111827;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.stat-card span {
    display: block;

    margin-bottom: 8px;

    color: #6b7280;
    font-size: 11px;
}

.stat-card strong {
    display: block;

    color: #111827;
    font-size: 24px;
    font-weight: 600;
}
/* =========================================================
   POSITION DU PANNEAU NAVIGATION
========================================================= */

#instructions {
    top: auto;
    bottom: 20px;
    left: 20px;
}
/* =========================================================
   POSITION DU PANNEAU PLACE
========================================================= */

#spotPanel {
    top: 220px !important;
    right: 20px !important;
}
/* =========================================================
   ICÔNE — PLACES LIBRES
========================================================= */

.stat-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 8px;

    background: #eaf8f1;
    color: #16a34a;

    font-size: 15px;
    font-weight: 700;
}
/* =========================================================
   COULEURS DES ICÔNES KPI
========================================================= */

.stat-card:nth-child(1) .stat-icon {
    background: #eaf8f1;
    color: #16a34a;
}

.stat-card:nth-child(2) .stat-icon {
    background: #fff0f0;
    color: #dc2626;
}

.stat-card:nth-child(3) .stat-icon {
    background: #fff7e6;
    color: #d97706;
}

.stat-card:nth-child(4) .stat-icon {
    background: #eaf2ff;
    color: #2563eb;
}
/* =========================================================
   TITRE — VUE D'ENSEMBLE
========================================================= */

.dashboard-section-title {
    margin: 20px 0 12px 0;
}

.dashboard-section-title h2 {
    margin: 0 0 4px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.dashboard-section-title p {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
}
/* =========================================================
   CADRE DU PARKING 3D
========================================================= */

#parking3d {
    border: 1px solid #d9dee7;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
/* =========================================================
   EN-TÊTE — PARKING 3D
========================================================= */

.parking3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 18px;

    background: #ffffff;
    border-bottom: 1px solid #d9dee7;
}

.parking3d-header h2 {
    margin: 0 0 3px 0;

    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.parking3d-header p {
    margin: 0;

    color: #6b7280;
    font-size: 10px;
}
/* =========================================================
   STATUT — PARKING EN DIRECT
========================================================= */

.parking-live-status {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;

    color: #15803d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.parking-live-status span {
    color: #22c55e;
    font-size: 10px;
}
/* =========================================================
   STATUT — NIVEAU DU PARKING
========================================================= */

.parking-level-status {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background: #f8fafc;
    border: 1px solid #d9dee7;
    border-radius: 6px;

    color: #475569;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* =========================================================
   ACTIVITÉ RÉCENTE
========================================================= */

.recent-activity {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    min-height: 58px;
}

.activity-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #eaf8f1;
    color: #16a34a;

    font-size: 14px;
    font-weight: 700;
}

.activity-item strong {
    display: block;

    margin-bottom: 3px;

    color: #111827;
    font-size: 12px;
    font-weight: 600;
}

.activity-item span {
    display: block;

    color: #6b7280;
    font-size: 10px;
}

.activity-item time {
    margin-left: auto;

    color: #94a3b8;
    font-size: 10px;
    white-space: nowrap;
}
/* =========================================================
   ALERTES
========================================================= */

.alerts-panel {
    width: 100%;

    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);

    overflow: hidden;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    min-height: 58px;
}

.alert-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #fff7e6;
    color: #d97706;

    font-size: 15px;
    font-weight: 700;
}

.alert-item strong {
    display: block;

    margin-bottom: 3px;

    color: #111827;
    font-size: 12px;
    font-weight: 600;
}

.alert-item span {
    display: block;

    color: #6b7280;
    font-size: 10px;
}
/* =========================================================
   GRILLE — ACTIVITÉ + ALERTES
========================================================= */

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
}
/* =========================================================
   LABOMGD — STRUCTURE DE LA SIDEBAR
========================================================= */

.sidebar {
    box-shadow: 2px 0 8px rgba(15, 23, 42, 0.04);
}
/* =========================================================
   TITRE — ÉTAT DU PARKING
========================================================= */

.sidebar .parking-summary .menu-title {
    color: #6b7280;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
/* =========================================================
   CHIFFRES — ÉTAT DU PARKING
========================================================= */

.sidebar .parking-summary strong {
    font-size: 17px;
    font-weight: 700;
}
/* =========================================================
   COULEURS — ÉTAT DU PARKING
========================================================= */

.sidebar .parking-summary > div:nth-child(2) strong {
    color: #16a34a;
}

.sidebar .parking-summary > div:nth-child(3) strong {
    color: #dc2626;
}

.sidebar .parking-summary > div:nth-child(4) strong {
    color: #d97706;
}
/* =========================================================
   SIDEBAR — DASHBOARD ACTIF
========================================================= */

.sidebar .menu-button.active {
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.08);
    font-weight: 600;
}
/* =========================================================
   SIDEBAR — EFFET AU SURVOL
========================================================= */

.sidebar .menu-button:not(.active):hover {
    background: #f1f5f9;
    color: #1677ff;
    transform: translateX(2px);
}
/* =========================================================
   SIDEBAR — TRANSITION DES BOUTONS
========================================================= */

.sidebar .menu-button {
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}/* =========================================================
   HEADER — STATUT PARKING
========================================================= */

.topbar .top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* =========================================================
   HEADER — INFORMATIONS PARKING
========================================================= */

.topbar-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-info span {
    padding: 6px 10px;

    background: #f8fafc;
    border: 1px solid #d9dee7;
    border-radius: 6px;

    color: #475569;
    font-size: 10px;
    font-weight: 600;
}
/* =========================================================
   LOGO — LABOMGD
========================================================= */

.logo-icon {
    background: linear-gradient(135deg, #1677ff, #4f9cff);
    border-radius: 11px;
    box-shadow: 0 5px 14px rgba(22, 119, 255, 0.22);
}
/* =========================================================
   LOGO — TEXTE LABOMGD
========================================================= */

.logo h1 {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
/* =========================================================
   LOGO — SOUS-TITRE
========================================================= */

.logo p {
    color: #64748b;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
}
/* =========================================================
   LOGO — ESPACEMENT DU SOUS-TITRE
========================================================= */

.logo p {
    margin: 2px 0 0 0;
    line-height: 1.2;
}
/* =========================================================
   SIDEBAR — BOUTON DASHBOARD
========================================================= */

.sidebar .menu-button.active {
    background: #eaf3ff;
    color: #1677ff;
    border-left: 3px solid #1677ff;
    font-weight: 600;
}
/* =========================================================
   SIDEBAR — ALIGNEMENT DES ICÔNES
========================================================= */

.sidebar .menu-button span {
    width: 26px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* =========================================================
   SIDEBAR — FINITION DES BOUTONS
========================================================= */

.sidebar .menu-button {
    border-radius: 8px;
    min-height: 40px;
}
/* =========================================================
   SIDEBAR — SÉPARATION VISUELLE
========================================================= */

.sidebar {
    box-shadow: 2px 0 10px rgba(15, 23, 42, 0.06);
}
/* =========================================================
   DASHBOARD — ESPACEMENT PRINCIPAL
========================================================= */

main {
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
}
/* =========================================================
   DASHBOARD — FOND PRINCIPAL
========================================================= */

main {
    background: #f8fafc;
}
/* =========================================================
   DASHBOARD — TITRE PRINCIPAL
========================================================= */

.dashboard-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}
/* =========================================================
   DASHBOARD — ESPACEMENT DU TITRE
========================================================= */

.dashboard-section-title h2 {
    margin-bottom: 6px;
}
/* =========================================================
   KPI — CHIFFRES
========================================================= */

.stat-card strong {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
/* =========================================================
   KPI — PROFONDEUR DES CARTES
========================================================= */

.stat-card {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
/* =========================================================
   KPI — SURVOL
========================================================= */

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
/* =========================================================
   KPI — TRANSITION
========================================================= */

.stat-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
/* =========================================================
   ACTIVITÉ — TITRE
========================================================= */

.dashboard-bottom-grid .dashboard-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
/* =========================================================
   ACTIVITÉ — PANNEAU
========================================================= */

.recent-activity {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}
/* =========================================================
   ACTIVITÉ — SÉPARATION DES LIGNES
========================================================= */

.activity-item + .activity-item {
    border-top: 1px solid #eef2f7;
}
/* =========================================================
   ACTIVITÉ — ICÔNES
========================================================= */

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
}
/* =========================================================
   ACTIVITÉ — TEXTE PRINCIPAL
========================================================= */

.activity-item strong {
    font-size: 13px;
    font-weight: 600;
}
/* =========================================================
   ACTIVITÉ — TEXTE SECONDAIRE
========================================================= */

.activity-item span {
    font-size: 11px;
    color: #64748b;
}
/* =========================================================
   ACTIVITÉ — HORAIRES
========================================================= */

.activity-item time {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}
/* =========================================================
   ALERTES — PANNEAU
========================================================= */

.alerts-panel {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}
/* =========================================================
   ALERTES — ICÔNE
========================================================= */

.alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
}
/* =========================================================
   ALERTES — TEXTE PRINCIPAL
========================================================= */

.alert-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}
/* =========================================================
   ALERTES — TEXTE SECONDAIRE
========================================================= */

.alert-item span {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
/* =========================================================
   PANNEAU PLACE — BOUTON D'ACTION
========================================================= */

.action-button {
    min-height: 38px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
/* =========================================================
   PANNEAU PLACE — OMBRE DU BOUTON
========================================================= */

.action-button {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
/* =========================================================
   PANNEAU PLACE — SURVOL DU BOUTON
========================================================= */

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
/* =========================================================
   PANNEAU PLACE — TITRE
========================================================= */

.information-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
/* =========================================================
   PANNEAU PLACE — INFORMATIONS
========================================================= */

.information-panel p {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

.information-panel strong {
    color: #111827;
    font-weight: 600;
}
/* =========================================================
   ZONE DE CONTENU
========================================================= */

.content-area {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}
/* =========================================================
   ESPACE EMPLOYÉS — VUE INDÉPENDANTE
========================================================= */

#employeesSection {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    overflow-y: auto;
    background: #f8fafc;
    padding: 24px;
    box-sizing: border-box;
}
/* =========================================================
   ESPACE EMPLOYÉS — STYLE
========================================================= */

#employeesSection {
    color: #111827;
}

.employees-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.employees-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.employees-header p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

.employee-add-button {
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    background: #1677ff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.employee-add-button:hover {
    background: #0f66dc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.22);
}


/* =========================================================
   FORMULAIRE
========================================================= */

.employee-form {
    max-width: 1100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.employee-form-title {
    margin-bottom: 24px;
}

.employee-form-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    color: #111827;
}

.employee-form-title p {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #64748b;
}


/* =========================================================
   CHAMPS
========================================================= */

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-field label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.form-field input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}

.form-field input::placeholder {
    color: #94a3b8;
}


/* =========================================================
   PHOTO
========================================================= */

.car-photo-preview {
    margin-top: 10px;
    width: 100%;
    height: 150px;
    box-sizing: border-box;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
}

.car-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   BOUTON ENREGISTRER
========================================================= */

.employee-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.employee-save-button {
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    background: #1677ff;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.employee-save-button:hover {
    background: #0f66dc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.22);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .employee-form-grid {
        grid-template-columns: 1fr;
    }

    .employees-header {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   LISTE DES EMPLOYÉS
========================================================= */

.employees-list-container {
    margin-top: 28px;
}

.employees-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.employees-list-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    color: #111827;
}

.employees-list-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.employee-count {
    padding: 6px 10px;
    border-radius: 20px;
    background: #eaf3ff;
    color: #1677ff;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   GRILLE
========================================================= */

.employees-list {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 18px;
}


/* =========================================================
   CARTE EMPLOYÉ
========================================================= */

.employee-card {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 150px;
    padding: 16px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   PHOTO
========================================================= */

.employee-card-photo {
    width: 120px;
    height: 110px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    background: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-card-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.employee-card-no-photo {
    font-size: 36px;
    opacity: 0.55;
}


/* =========================================================
   INFORMATIONS
========================================================= */

.employee-card-info {
    min-width: 0;
}

.employee-card-info h4 {
    margin: 0 0 12px 0;

    font-size: 17px;
    font-weight: 700;

    color: #111827;
}

.employee-card-info p {
    margin: 7px 0;

    font-size: 13px;

    color: #64748b;
}


/* =========================================================
   LISTE VIDE
========================================================= */

.employees-empty {
    padding: 30px;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;

    text-align: center;

    color: #94a3b8;
    font-size: 14px;
}
x/* ============================================================
   CARTES EMPLOYÉS — DESIGN PROFESSIONNEL
   ============================================================ */

.employee-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 18px;

    min-height: 170px;
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08);
}


/* ------------------------------------------------------------
   PHOTO
   ------------------------------------------------------------ */

.employee-card-photo {
    width: 135px;
    height: 135px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 12px;

    background: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e2e8f0;
}

.employee-card-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.employee-card-no-photo {
    font-size: 42px;
    opacity: 0.45;
}


/* ------------------------------------------------------------
   INFORMATIONS
   ------------------------------------------------------------ */

.employee-card-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    padding-top: 2px;
}

.employee-card-info h4 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.25;
}

.employee-card-info p {
    margin: 4px 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}

.employee-card-info p:first-of-type {
    color: #475569;
}


/* ------------------------------------------------------------
   INFORMATIONS VOITURE
   ------------------------------------------------------------ */

.employee-card-info p:last-of-type {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 7px;

    color: #334155;

    font-weight: 500;
}


/* ------------------------------------------------------------
   BOUTONS
   ------------------------------------------------------------ */

.employee-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 14px;
}

.employee-card-actions button {
    height: 34px;

    padding: 0 12px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.employee-card-actions button:hover {
    transform: translateY(-1px);
}


/* Modifier */

.employee-edit-button {
    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #bfdbfe;
}

.employee-edit-button:hover {
    background: #dbeafe;

    border-color: #93c5fd;
}


/* Supprimer */

.employee-delete-button {
    color: #dc2626;

    background: #fef2f2;

    border: 1px solid #fecaca;
}

.employee-delete-button:hover {
    background: #fee2e2;

    border-color: #fca5a5;
}


/* ------------------------------------------------------------
   AUCUN EMPLOYÉ
   ------------------------------------------------------------ */

.employees-empty {
    grid-column: 1 / -1;

    padding: 40px 20px;

    text-align: center;

    color: #64748b;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}


/* ------------------------------------------------------------
   PETITS ÉCRANS
   ------------------------------------------------------------ */

@media (max-width: 650px) {

    .employee-card {
        gap: 14px;
        padding: 14px;
    }

    .employee-card-photo {
        width: 95px;
        height: 95px;
    }

    .employee-card-info h4 {
        font-size: 16px;
    }

    .employee-card-actions {
        flex-wrap: wrap;
    }

    .employee-card-actions button {
        font-size: 12px;
        padding: 0 9px;
    }
}
/* ============================================================
   CARTES EMPLOYÉS — STYLE PREMIUM
   ============================================================ */

.employee-card {
    display: flex;
    gap: 18px;

    min-height: 185px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.10);
}


/* PHOTO */

.employee-card-photo {
    width: 135px;
    height: 150px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 13px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-card-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.employee-card-no-photo {
    font-size: 42px;
    opacity: 0.45;
}


/* CONTENU */

.employee-card-info {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* EN-TÊTE */

.employee-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}

.employee-card-label {
    display: block;

    margin-bottom: 4px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.employee-card-info h4 {
    margin: 0;

    color: #0f172a;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.2;
}


/* STATUT */

.employee-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    color: #15803d;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.05em;
}


/* INFORMATIONS */

.employee-card-details {
    display: grid;
    grid-template-columns: 1fr;

    gap: 8px;
}

.employee-detail-item {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    background: #f8fafc;

    border: 1px solid #f1f5f9;
    border-radius: 9px;
}

.employee-detail-icon {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    font-size: 14px;
}

.employee-detail-item > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.employee-detail-label {
    color: #94a3b8;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.employee-detail-value {
    overflow: hidden;

    color: #334155;

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ACTIONS */

.employee-card-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;
    padding-top: 13px;
}

.employee-card-actions button {
    height: 33px;

    padding: 0 11px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.employee-card-actions button:hover {
    transform: translateY(-1px);
}


/* MODIFIER */

.employee-edit-button {
    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #bfdbfe;
}

.employee-edit-button:hover {
    background: #dbeafe;

    border-color: #93c5fd;
}


/* SUPPRIMER */

.employee-delete-button {
    color: #dc2626;

    background: #fef2f2;

    border: 1px solid #fecaca;
}

.employee-delete-button:hover {
    background: #fee2e2;

    border-color: #fca5a5;
}


/* MOBILE */

@media (max-width: 650px) {

    .employee-card {
        gap: 12px;

        padding: 14px;
    }

    .employee-card-photo {
        width: 95px;
        height: 115px;
    }

    .employee-card-info h4 {
        font-size: 16px;
    }

    .employee-status {
        display: none;
    }

    .employee-card-actions {
        flex-wrap: wrap;
    }
}
/* ============================================================
   PAGE VÉHICULES
   ============================================================ */

#vehiclesSection {
    position: absolute;
    inset: 0;
    z-index: 20;

    display: none;

    overflow-y: auto;

    background: #f8fafc;

    padding: 24px;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   EN-TÊTE
   ------------------------------------------------------------ */

.vehicles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.vehicles-header h2 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 25px;
    font-weight: 700;
}

.vehicles-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}


/* ------------------------------------------------------------
   BOUTON AJOUT
   ------------------------------------------------------------ */

.vehicle-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;

    padding: 0 16px;

    color: #ffffff;

    background: #2563eb;

    border: 1px solid #2563eb;
    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgba(37, 99, 235, 0.18);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.vehicle-add-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.25);
}


/* ------------------------------------------------------------
   LISTE
   ------------------------------------------------------------ */

.vehicles-list-container {
    margin-top: 10px;
}

.vehicles-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.vehicles-list-header h3 {
    margin: 0 0 4px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;
}

.vehicles-list-header p {
    margin: 0;

    color: #94a3b8;

    font-size: 13px;
}


/* ------------------------------------------------------------
   COMPTEUR
   ------------------------------------------------------------ */

.vehicle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 85px;

    padding: 6px 11px;

    color: #475569;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
}


/* ------------------------------------------------------------
   GRILLE
   ------------------------------------------------------------ */

.vehicles-list {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 18px;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    #vehiclesSection {
        padding: 18px;
    }

    .vehicles-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .vehicle-add-button {
        width: 100%;
    }

    .vehicles-list-header {
        align-items: flex-start;

        flex-direction: column;
    }
}
/* ============================================================
   FORMULAIRE VÉHICULES — STYLE PREMIUM
   ============================================================ */

.vehicle-form {
    margin-top: 22px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.04);
}

.vehicle-form-title {
    margin-bottom: 20px;
}

.vehicle-form-title h3 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 17px;
    font-weight: 700;
}

.vehicle-form-title p {
    margin: 0;

    color: #94a3b8;

    font-size: 13px;
}


/* ------------------------------------------------------------
   CHAMPS
   ------------------------------------------------------------ */

.vehicle-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.vehicle-form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.vehicle-form-field label {
    color: #334155;

    font-size: 12px;
    font-weight: 600;
}

.vehicle-form-field input,
.vehicle-form-field select {
    width: 100%;

    height: 40px;

    padding: 0 12px;

    box-sizing: border-box;

    color: #0f172a;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.vehicle-form-field input::placeholder {
    color: #94a3b8;
}

.vehicle-form-field input:focus,
.vehicle-form-field select:focus {
    background: #ffffff;

    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}


/* ------------------------------------------------------------
   BOUTON ENREGISTRER
   ------------------------------------------------------------ */

.vehicle-form-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 22px;
}

.vehicle-save-button {
    height: 40px;

    padding: 0 18px;

    color: #ffffff;

    background: #2563eb;

    border: 1px solid #2563eb;
    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgba(37, 99, 235, 0.18);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.vehicle-save-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.25);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 800px) {

    .vehicle-form-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   CARTES VÉHICULES — STYLE PREMIUM
   ============================================================ */

.vehicle-card {
    display: flex;
    align-items: stretch;
    gap: 18px;

    min-height: 190px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.vehicle-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.10);
}


/* ------------------------------------------------------------
   ICÔNE DU VÉHICULE
   ------------------------------------------------------------ */

.vehicle-card-icon {
    width: 100px;
    height: 100px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 4px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 14px;

    font-size: 42px;
}


/* ------------------------------------------------------------
   CONTENU
   ------------------------------------------------------------ */

.vehicle-card-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* ------------------------------------------------------------
   EN-TÊTE
   ------------------------------------------------------------ */

.vehicle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}

.vehicle-card-label {
    display: block;

    margin-bottom: 4px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.vehicle-card-content h4 {
    margin: 0;

    color: #0f172a;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.2;
}


/* ------------------------------------------------------------
   STATUT
   ------------------------------------------------------------ */

.vehicle-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    color: #15803d;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.05em;
}


/* ------------------------------------------------------------
   INFORMATIONS
   ------------------------------------------------------------ */

.vehicle-card-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.vehicle-detail-item {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 9px 11px;

    background: #f8fafc;

    border: 1px solid #f1f5f9;
    border-radius: 9px;
}

.vehicle-detail-label {
    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.07em;
}

.vehicle-detail-value {
    overflow: hidden;

    color: #334155;

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ------------------------------------------------------------
   ACTIONS
   ------------------------------------------------------------ */

.vehicle-card-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;
    padding-top: 13px;
}

.vehicle-card-actions button {
    height: 33px;

    padding: 0 12px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.vehicle-card-actions button:hover {
    transform: translateY(-1px);
}


/* MODIFIER */

.vehicle-edit-button {
    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #bfdbfe;
}

.vehicle-edit-button:hover {
    background: #dbeafe;

    border-color: #93c5fd;
}


/* SUPPRIMER */

.vehicle-delete-button {
    color: #dc2626;

    background: #fef2f2;

    border: 1px solid #fecaca;
}

.vehicle-delete-button:hover {
    background: #fee2e2;

    border-color: #fca5a5;
}


/* ------------------------------------------------------------
   AUCUN VÉHICULE
   ------------------------------------------------------------ */

.vehicles-empty {
    grid-column: 1 / -1;

    padding: 40px 20px;

    text-align: center;

    color: #64748b;

    background: #ffffff;

    border: 1px dashed #cbd5e1;

    border-radius: 14px;
}


/* ------------------------------------------------------------
   PETITS ÉCRANS
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .vehicle-card {
        gap: 12px;

        padding: 14px;
    }

    .vehicle-card-icon {
        width: 75px;
        height: 75px;

        font-size: 32px;
    }

    .vehicle-card-details {
        grid-template-columns: 1fr;
    }

    .vehicle-card-content h4 {
        font-size: 16px;
    }

    .vehicle-status {
        display: none;
    }

    .vehicle-card-actions {
        flex-wrap: wrap;
    }
}
/* Formulaire véhicule masqué au démarrage */
#vehicleForm {
    display: none !important;
}
#vehicleForm.vehicle-form-visible {
    display: block !important;
}
.logo-labomgd {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.logo-labomgd span {
    color: #2196f3;
}
/* =========================================================
   CORRECTION — LARGEUR DU DASHBOARD
========================================================= */

main {
    width: 100%;
    box-sizing: border-box;
}

.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
}
/* CORRECTION FINALE — LARGEUR DASHBOARD */

main {
    display: block !important;
    width: 100% !important;
}

.stats {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.dashboard-bottom-grid {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
/* CORRECTION — STRUCTURE VERTICALE DU DASHBOARD */

main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
}
/* CORRECTION — BLOCS DASHBOARD SUR TOUTE LA LARGEUR */

main > * {
    width: 100% !important;
    grid-column: 1 / -1 !important;
    box-sizing: border-box;
}