:root {
    --bg-main: #0f111a;
    --sidebar-bg: #161a26;
    --card-bg: #1c2230;
    --topbar-bg: #161a26;
    --primary: #2563eb;
    --secondary: #475569;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius-lg: 4px;
    --radius-md: 4px;
    --radius-sm: 2px;
    --transition: all 0.2s ease-in-out;
}

/* EMS Theme Overrides */
.theme-ems {
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.5);
    --secondary: #f87171;
}

/* Sheriff Theme Overrides */
.theme-sheriff {
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.5);
    --secondary: #d97706;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ================= GLOBAL UTILITY SYSTEM ================= */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.grid {
    display: grid;
}

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

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

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

.relative {
    position: relative;
}

.top-\[-1px\] {
    top: -1px;
}

/* ================= MODAL STYLES ================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-container {
    background: var(--sidebar-bg);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content-pad {
    padding: 2rem;
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--border);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-box {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
}

.profile-section-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.profile-section-box {
    padding: 1.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* ================= LOGIN SCREEN ================= */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: #0c0e14;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1e293b 0%, #0c0e14 100%);
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 3.5rem 2.5rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.login-badge {
    font-size: 3rem;
    color: var(--primary);
    margin: 0 auto 2rem;
}

.login-badge-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.8;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.login-subtitle {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--border);
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-field {
    margin-bottom: 1.5rem;
}

.login-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-field input {
    width: 100%;
    background: rgba(43, 48, 64, 0.5);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(43, 48, 64, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.login-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    justify-content: center;
}

.login-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.login-btn:hover {
    filter: brightness(1.05);
}

.login-btn-outline {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.badge-input-wrapper span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    font-weight: 800;
    color: var(--primary);
    border-right: 1px solid var(--border);
}

.badge-input-wrapper input {
    background: transparent !important;
    border: none !important;
    flex: 1;
    padding: 0.75rem 1rem;
    color: #fff;
    font-weight: 700;
}

.badge-input-wrapper input:focus {
    box-shadow: none !important;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}



.login-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    color: var(--primary);
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.sidebar-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 1.5rem 0 0.5rem 0.75rem;
    letter-spacing: 1.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
}

.nav-badge {
    margin-left: auto;
    background: var(--border);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

.nav-badge.danger {
    background: var(--danger);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    overflow: hidden;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
}

.user-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.user-rank {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ================= MAIN CONTENT ================= */
.mdt-app {
    display: flex;
    height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 60px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.topbar-breadcrumb span:last-child {
    color: var(--text-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-clock {
    font-weight: 800;
    font-size: 1.125rem;
    font-family: 'JetBrains Mono', monospace;
}

.topbar-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.topbar-status-dropdown {
    position: relative;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.status-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.status-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.status-trigger i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Operational States */
.status-success {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.status-warning {
    background: var(--warning);
    box-shadow: 0 0 12px var(--warning);
}

.status-info {
    background: #3b82f6;
    box-shadow: 0 0 12px #3b82f6;
}

.status-danger {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

.status-default {
    background: #64748b;
}

/* ================= PAGE HEADERS ================= */
.page-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ======================== GLOBAL DASHBOARD STYLES v2 ======================== */
.dashboard-section-header {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    margin: 2.5rem 0 1.25rem 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    border-left: 6px solid #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lspd-header {
    border-color: var(--primary);
    color: #60a5fa;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), transparent);
}

.bcso-header {
    border-color: var(--warning);
    color: #facc15;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), transparent);
}

.other-header {
    border-color: #94a3b8;
    color: #e2e8f0;
}

.dashboard-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Service Stripe Accent */
.dashboard-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    opacity: 0.5;
}

.dashboard-card.card-lspd::after {
    background: var(--primary);
}

.dashboard-card.card-sheriff::after,
.dashboard-card.card-bcso::after {
    background: var(--warning);
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* Background Icon Overlay */
.card-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 6rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.dashboard-card:hover .card-bg-icon {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
}

.dashboard-card .card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.dashboard-card .card-main {
    flex: 1;
    z-index: 1;
}

.dashboard-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.dashboard-card .card-title {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.dashboard-card .card-subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.4;
}

/* Unified Feed Layout */
.activity-feed-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.activity-feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

/* ======================== PENAL CODE ACCORDION ======================== */
.penal-category.open .penal-items-list {
    max-height: 2000px !important;
}

.penal-category.open .penal-chevron {
    transform: rotate(180deg) !important;
}

.penal-category-header:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) !important;
}

.penal-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.premium-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.premium-title .text-primary {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.premium-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.premium-input-group {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4px !important;
    border-radius: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 48px;
}

.premium-input-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-icon {
    color: var(--text-muted);
    padding-left: 1rem;
    font-size: 1rem;
}

.dispatch-input-sm {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

.premium-deploy-btn {
    height: 100%;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0 1.25rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.premium-deploy-btn:hover {
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

/* ================= STATUS DROPDOWN ================= */
.status-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-menu.active {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dispatch-card-header {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dispatch-card.central .dispatch-card-header {
    background: linear-gradient(to right, rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9));
    border-bottom: 2px solid var(--primary);
}

.dispatch-card-title {
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* THE STOP BUTTON - GRID CENTERED */
.delete-patrol-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(248, 113, 113, 0.4) !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-patrol-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.dispatch-header-status-area {
    display: flex;
    justify-content: flex-end;
}

.unit-status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.unit-status-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.unit-status-pill i {
    font-size: 0.7rem;
    opacity: 0.4;
}

.status-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.unit-status-pill.status-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.unit-status-pill.status-success span {
    color: #4ade80;
}

.unit-status-pill.status-success .status-dot-mini {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.unit-status-pill.status-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.unit-status-pill.status-danger span {
    color: #f87171;
}

.unit-status-pill.status-danger .status-dot-mini {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.unit-status-pill.status-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

.unit-status-pill.status-warning span {
    color: #fbbf24;
}

.unit-status-pill.status-warning .status-dot-mini {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

.unit-status-pill.status-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.unit-status-pill.status-info span {
    color: #60a5fa;
}

.unit-status-pill.status-info .status-dot-mini {
    background: #60a5fa;
    box-shadow: 0 0 8px #60a5fa;
}

.unit-status-pill.locked {
    cursor: not-allowed;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.agent-slot.occupied.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.agent-slot.occupied.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.patrol-status-menu {
    width: 200px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    display: none;
    z-index: 2000;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.patrol-status-menu.active {
    display: block;
}

.patrol-status-menu .status-option.current {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-main);
}


.page-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    width: fit-content;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ================= DASHBOARD ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border);
}

.stat-blue .stat-icon {
    background: #1e3a8a;
    color: #fff;
    border-color: #3b82f6;
}

.stat-red .stat-icon {
    background: #7f1d1d;
    color: #fff;
    border-color: #ef4444;
}

.stat-amber .stat-icon {
    background: #78350f;
    color: #fff;
    border-color: #f59e0b;
}

.stat-green .stat-icon {
    background: #064e3b;
    color: #fff;
    border-color: #10b981;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-trend {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.stat-trend.neutral {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-list {
    padding: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.red {
    background: #450a0a;
    color: #f87171;
}

.activity-icon.blue {
    background: #172554;
    color: #60a5fa;
}

.activity-icon.amber {
    background: #451a03;
    color: #fbbf24;
}

.activity-icon.green {
    background: #064e3b;
    color: #4ade80;
}

.activity-icon.purple {
    background: #2e1065;
    color: #c084fc;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bolo-list {
    padding: 1.5rem;
}

.bolo-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 4px solid var(--text-muted);
}

.bolo-item.priority-high {
    border-left-color: var(--danger);
}

.bolo-item.priority-medium {
    border-left-color: var(--warning);
}

.bolo-item.priority-low {
    border-left-color: var(--primary);
}

.bolo-priority {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.priority-high .bolo-priority {
    color: var(--danger);
}

.priority-medium .bolo-priority {
    color: var(--warning);
}

.priority-low .bolo-priority {
    color: var(--primary);
}

.bolo-item h4 {
    font-size: 1rem;
}

.bolo-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.bolo-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bolo-meta i {
    margin-right: 0.25rem;
}

/* ================= SEARCH PAGES ================= */
.search-bar-container {
    margin-bottom: 2rem;
}

.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 56px;
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
}

.search-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.citizens-results,
.vehicles-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.citizen-card,
.vehicle-card {
    background: linear-gradient(145deg, rgba(28, 34, 48, 0.7), rgba(22, 26, 38, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.citizen-card:hover,
.vehicle-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

/* Wanted State Styling */
.citizen-card.is-wanted {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(145deg, rgba(45, 15, 15, 0.6), rgba(22, 26, 38, 0.95));
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1), inset 0 0 15px rgba(239, 68, 68, 0.05);
    animation: breathing-aura 3s ease-in-out infinite;
}

@keyframes breathing-aura {

    0%,
    100% {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
    }

    50% {
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
    }
}

.citizen-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.citizen-avatar {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.is-wanted .citizen-avatar {
    border-color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.is-wanted .citizen-avatar::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(239, 68, 68, 0.4), transparent);
    animation: scanning 2s linear infinite;
}

@keyframes scanning {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.citizen-name h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.citizen-id {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.6;
}

.citizen-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.citizen-stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.citizen-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.citizen-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.warrant-indicator-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 0.5rem 1rem;
    border-bottom-left-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
    text-transform: uppercase;
}

.warrant-indicator-badge i {
    animation: fa-flash 1s infinite alternate;
}

@keyframes fa-flash {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.citizen-stat-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.citizen-card:hover .citizen-stat-box {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.animate-pulse-fast {
    animation: pulse-danger-fast 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-danger-fast {

    0%,
    100% {
        opacity: 1;
        color: #f87171;
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

    50% {
        opacity: .7;
        color: #ffffff;
        text-shadow: none;
    }
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    pointer-events: auto;
    animation: toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        toast-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 4s;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast i {
    font-size: 1.1rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.modal {
    background: var(--card-bg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 2rem;
    border: 1px solid var(--border);
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* ================= DISPATCH ================= */
.dispatch-container {
    height: calc(100vh - 250px);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.dispatch-feed {
    flex: 1;
    padding: 1.5rem;
}

/* ================= DISPATCH COMMAND CENTER ================= */
.dispatch-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    align-items: start;
}

.dispatch-main {
    min-width: 0;
}

.dispatch-sidebar {
    position: sticky;
    top: 1.5rem;
}

.active-roster-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roster-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.roster-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.roster-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.roster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.roster-details {
    display: flex;
    flex-direction: column;
}

.roster-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.roster-rank {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.roster-status {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.roster-status.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.roster-status.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.roster-status.danger {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.roster-status.info {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.dispatch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.dispatch-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dispatch-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Moved to consolidated section above */

.dispatch-card.central .dispatch-card-header {
    background: linear-gradient(to right, rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9));
    border-bottom: 2px solid var(--primary);
}

/* Combined into main section */

.dispatch-card-title i {
    font-size: 1rem;
    opacity: 0.8;
}

.dispatch-card-body {
    padding: 1.5rem;
    flex: 1;
}

.dispatch-agents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.agent-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    transition: var(--transition);
}

.agent-slot:not(.empty):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.agent-slot.clickable {
    cursor: pointer;
    border-style: solid;
    background: rgba(255, 255, 255, 0.01);
}

.agent-slot.clickable:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    transform: translateX(4px);
}

.agent-slot.occupied {
    background: rgba(255, 255, 255, 0.04);
}

.agent-slot.mine {
    border-left: 3px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.role-label {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.15rem;
    display: block;
}

.agent-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.2;
}

.leave-slot-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.leave-slot-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.agent-slot-avatar {
    width: 32px;
    height: 32px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.agent-slot.mine .agent-slot-avatar {
    background: var(--primary);
    color: #fff;
    border: none;
}

/* Moved to consolidated section above */

.dispatch-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.dispatch-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.dispatch-input-sm {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    width: 220px;
}

.dispatch-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}


/* responsive quirks */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ================= MODALS & OVERLAYS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: flex;
    /* Keep flex to allow transition, just change opacity and pointers */
}

.modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 650px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(1) translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.hidden .modal {
    transform: scale(0.95) translateY(20px);
}

/* ================= FULL PAGE CITIZEN PROFILE ================= */
.full-profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-sidebar {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    position: sticky;
    top: 2rem;
}

.profile-photo-container {
    width: 250px;
    height: 300px;
    margin: 0 auto 1.5rem auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.profile-photo {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: contain;
}

.profile-photo-placeholder {
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.threat-badge {
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-shadow: 0 0 10px currentColor;
}

.profile-fullname {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.25rem;
}

.profile-cid {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.profile-main {
    min-height: 50vh;
}

/* Nouvelles Tabs style FBI (Slick Pills) */
.citizen-nav-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.citizen-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.citizen-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.citizen-nav-btn.active {
    background: white;
    color: black;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.citizen-nav-btn .count {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.citizen-nav-btn.active .count {
    background: rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.tab-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-content-pad {
    padding: 2.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.profile-info p {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.profile-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem;
}

/* ================= MODAL TABS ================= */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    background: rgba(37, 99, 235, 0.2);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.tab-btn.active-danger {
    color: white;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: inset 0 -2px 0 var(--danger);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ================= LIST ITEMS (Vehicles, Reports, Logs) ================= */
.list-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.list-item-title {
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-item-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.list-item-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.bg-danger-subtle {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bg-success-subtle {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.bg-warning-subtle {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fine-bill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #4ade80;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(74, 222, 128, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ================= ACTION MODAL (Citizen Profile Forms) ================= */
.action-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: actionModalFadeIn 0.3s ease;
}

.action-modal-overlay.hidden {
    display: none !important;
}

.action-modal {
    background: linear-gradient(160deg, rgba(22, 26, 38, 0.98), rgba(15, 17, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    animation: actionModalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.action-modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* Modal Header */
.action-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-modal-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.action-modal-header-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-modal-header-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.action-modal-header-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.action-modal-header-icon.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.action-modal-header-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.action-modal-header-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.2rem;
}

.action-modal-header-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modal Body (Form) */
.action-modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

.action-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-form-row.single {
    grid-template-columns: 1fr;
}

.action-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.action-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-form-group input,
.action-form-group select,
.action-form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.action-form-group input:focus,
.action-form-group select:focus,
.action-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.action-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.action-form-group select option {
    background: #1c2230;
    color: white;
}

/* Charges picker */
.charges-picker {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.charges-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.charges-picker-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.charges-search {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.charges-search:focus {
    outline: none;
    border-color: var(--primary);
}

.charges-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.charge-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.charge-option:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.charge-option .charge-name {
    font-weight: 600;
    color: white;
}

.charge-option .charge-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

.selected-charges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.selected-charge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.selected-charge-tag .remove-charge {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.selected-charge-tag .remove-charge:hover {
    opacity: 1;
}

/* Form actions */
.action-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.action-form-actions .btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 12px;
    font-weight: 700;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    filter: brightness(1.15);
}

/* Form info banner */
.form-info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: #93c5fd;
}

.form-info-banner i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Amount input styling */
.amount-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input-group .currency-prefix {
    position: absolute;
    left: 1rem;
    font-weight: 700;
    color: #4ade80;
    font-size: 1rem;
}

.amount-input-group input {
    padding-left: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4ade80;
}

/* Duration row */
.duration-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duration-row input {
    width: 100px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.duration-row span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes actionModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes actionModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success toast */
.success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 20000;
    animation: toastSlideIn 0.4s ease, toastFadeOut 0.4s ease 2.6s forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ================= PREMIUM VEHICLE DOSSIER (TERMINAL APEX) ================= */
.dossier-premium-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInDossier 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDossier {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dossier-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-title-area h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.dossier-seal {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dossier-seal i {
    color: var(--primary);
}

.tech-grid-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
}

.dossier-hero-card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.dossier-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.plate-premium {
    background: #fff;
    color: #1e3a8a;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    border: 5px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    margin-bottom: 2rem;
}

.plate-premium .plate-state {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ef4444;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.model-name-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.model-color-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tech-info-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.tech-info-block:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-block-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-block-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-value-large {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.tech-sub-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.status-indicator-box {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.25rem;
}

.status-indicator-box.status-ok {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.02));
    border-left: 5px solid #22c55e;
}

.status-indicator-box.status-alert {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.03));
    border-left: 5px solid #ef4444;
}

.health-gauge-container {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    margin-top: 2rem;
}

.gauge-row {
    margin-bottom: 1.5rem;
}

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

.gauge-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gauge-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.gauge-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.gauge-bar-fill.engine {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.gauge-bar-fill.body {
    background: linear-gradient(90deg, #3b82f6, #2dd4bf);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.action-bar-dossier {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= NOTIFICATIONS & TOASTS ================= */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 999999; /* Increased to stay on top */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.notif {
    min-width: 300px;
    max-width: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    animation: slideInNotif 0.4s forwards;
}

@keyframes slideInNotif {
    to { transform: translateX(0); }
}

.notif.leaving {
    transform: translateX(120%);
}

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-success .notif-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notif-error .notif-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notif-info .notif-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.notif-content {
    flex: 1;
}

.notif-message {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.notif-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    opacity: 0.6;
}