html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
.priority-panel {
    border: 1px solid rgba(59, 130, 246, 0.18);
}
.vg-table tbody tr.activity-row {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.defaut-detail-cell {
    color: #e5e7eb;
    max-width: 360px;
}

.defaut-detail-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
}

.defaut-detail-text {
    color: #cbd5e1 !important;
    font-size: 0.86rem;
    line-height: 1.35;
}

.defaut-detail-muted {
    color: #94a3b8 !important;
}
    .vg-table tbody tr.activity-row:hover {
        background: rgba(59, 130, 246, 0.12);
    }


.plate-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 0.84rem;
    min-width: 92px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.priority-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    cursor: pointer;
    transition: all 0.18s ease;
    min-height: 86px;
}

    .priority-card:hover {
        transform: translateY(-2px);
        border-color: rgba(96, 165, 250, 0.55);
        background: rgba(30, 41, 59, 0.9);
    }

.priority-title {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.98rem;
}

.priority-sub {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-top: 4px;
}

.priority-value {
    font-size: 0.95rem;
    min-width: 42px;
    padding: 7px 10px;
}

.priority-critical {
    border-left: 4px solid #ef4444;
}

.priority-high {
    border-left: 4px solid #f59e0b;
}

.priority-medium {
    border-left: 4px solid #22d3ee;
}

.priority-info {
    border-left: 4px solid #3b82f6;
}
body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.vg-app {
    display: flex;
    min-height: 100vh;
}

.vg-sidebar {
    width: 260px;
    background: #111827;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 16px;
    flex-shrink: 0;
}

.vg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.vg-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
}

.vg-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.vg-logo-sub {
    font-size: 12px;
    color: #94a3b8;
}

.vg-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vg-menu-item {
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.2s;
    display: block;
}

    .vg-menu-item:hover,
    .vg-menu-item.active {
        background: rgba(37, 99, 235, 0.18);
        color: #ffffff;
    }

.vg-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vg-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: #0b1220;
}

.vg-page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.vg-page-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 4px;
}

.vg-user-box {
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    white-space: nowrap;
}

.vg-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.vg-content {
    padding: 28px;
}

.vg-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.20);
}

.stat-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.stat-sub {
    margin-top: 8px;
    color: #60a5fa;
    font-size: 13px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
}

.vg-table {
    color: #e5e7eb;
    margin-bottom: 0;
}

    .vg-table thead th {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: #94a3b8;
        font-weight: 600;
        background: transparent;
    }

    .vg-table td {
        border-color: rgba(255,255,255,0.06);
        background: transparent;
        color: #e5e7eb;
    }

.system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .system-item:last-child {
        border-bottom: none;
    }

.btn-primary {
    border-radius: 12px;
    padding: 10px 14px;
}

.btn-outline-light {
    border-radius: 12px;
}

@media (max-width: 991px) {
    .vg-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .vg-content {
        padding: 18px;
    }
}
.camera-preview-box {
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 600;
}

.camera-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}

.server-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

    .server-row:hover td {
        background: rgba(37, 99, 235, 0.12) !important;
    }

.server-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

    .server-link:hover {
        color: #7dd3fc;
        text-decoration: underline;
    }

.server-sub {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 3px;
}

.server-metric {
    color: #60a5fa;
    font-weight: 600;
}

.vg-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.vg-badge-success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.vg-badge-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.vg-badge-info {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
}
.vg-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vg-menu-item {
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.2s;
    display: block;
    font-size: 15px;
    font-weight: 500;
}

    .vg-menu-item:hover,
    .vg-menu-item.active {
        background: rgba(37, 99, 235, 0.18);
        color: #ffffff;
    }

.vg-menu-group {
    margin-top: 18px;
}

.vg-menu-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 14px;
}

.vg-submenu-item {
    display: block;
    padding: 9px 14px 9px 24px;
    margin: 2px 0;
    color: #60a5fa;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .vg-submenu-item:hover {
        background: rgba(255,255,255,0.05);
        color: #ffffff;
    }

    .vg-submenu-item.active {
        background: rgba(37, 99, 235, 0.18);
        color: #ffffff;
    }
/* Force le tableau serveurs à rester dark */
.vg-table,
.vg-table thead,
.vg-table tbody,
.vg-table tr,
.vg-table th,
.vg-table td {
    background: transparent !important;
    color: #e5e7eb !important;
}

    .vg-table thead th {
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .vg-table td {
        border-color: rgba(255,255,255,0.06) !important;
    }
.menu-toggle {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 2000;
        background: #1f2937;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 20px;
        line-height: 1;
        box-shadow: 0 4px 14px rgba(0,0,0,.25);
    }

    .vg-app {
        display: block;
    }

    .vg-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1500;
        overflow-y: auto;
        transition: left 0.25s ease;
        border-right: 1px solid rgba(255,255,255,0.06);
        border-bottom: none;
        background: #111827;
    }

        .vg-sidebar.active {
            left: 0;
        }

    .vg-main {
        width: 100%;
        margin-left: 0 !important;
    }

    .vg-topbar {
        padding: 70px 12px 12px 12px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .vg-page-title {
        font-size: 1.8rem;
    }

    .vg-page-subtitle {
        font-size: 0.9rem;
    }

    .vg-user-box {
        width: 100%;
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }

    .vg-content {
        padding: 12px !important;
    }
    .stat-mini {
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        padding: 16px 18px;
    }

    .stat-mini-title {
        color: #9ca3af;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .stat-mini-value {
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
    }
    .tracking-map-placeholder {
        min-height: 320px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.08);
        background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #cbd5e1;
        text-align: center;
        padding: 24px;
    }

    .tracking-map-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 8px;
    }

    .tracking-map-sub {
        color: #94a3b8;
        font-size: 0.95rem;
    }

    .tracking-side-card {
        min-height: 320px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.02);
        padding: 20px;
    }

    .tracking-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: #cbd5e1;
    }

        .tracking-info-item:last-child {
            border-bottom: none;
        }

}
