/* ============================
   LA NUEVA FORTALEZA — CSS
   Basado en el diseño de la Demo
   ============================ */

/* 1. VARIABLES */
:root {
    --primary: #1B5E20;
    --primary-light: #4CAF50;
    --primary-dark: #0a3d0c;
    --accent: #F9A825;
    --accent-light: #FDD835;
    --bg: #F5F5F0;
    --bg-dark: #1a1a2e;
    --oil-amber: #E65100;
    --danger: #D32F2F;
    --info: #1565C0;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e0;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #555555;
    --gray-700: #404040;
    --gray-800: #1a1a1a;
    --sidebar-w: 240px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* 3. LAYOUT */
.app-container {
    display: flex;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ===========================
   4. SIDEBAR — Gradiente verde
   =========================== */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo img {
    height: 48px;
    width: auto;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-section-label {
    padding: 0 20px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}
.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.nav-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: var(--accent);
    font-weight: 600;
}
.nav-item .material-symbols-outlined { font-size: 20px; }

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.sidebar-user-info { flex: 1; }
.sidebar-user-info .name { font-size: 12px; font-weight: 600; color: #fff; }
.sidebar-user-info .role { font-size: 10px; color: rgba(255,255,255,0.4); }
.sidebar-user .btn-logout {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    display: flex;
}
.sidebar-user .btn-logout:hover { color: #fff; }

/* ===========================
   5. HEADER — Limpio, sin fondo
   =========================== */
.top-header {
    display: none; /* El dashboard de la demo no tiene header separado */
}

/* ===========================
   6. STAT CARDS (KPIs) — Estilo demo
   =========================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
}
.stat-card h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
}
.stat-card .val {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    margin: 4px 0;
}
.stat-card .val.text-danger { color: var(--danger); }
.stat-card .val .unit {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 400;
}
.stat-card .delta {
    font-size: 11px;
    font-weight: 600;
}
.delta.up { color: var(--primary); }
.delta.down { color: var(--danger); }

/* ===========================
   7. CARDS / SECTIONS
   =========================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}
.card-body { padding: 0 20px 20px; }
.card-body.no-pad { padding: 0; }

/* ===========================
   8. BAR CHART — CSS puro
   =========================== */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding: 0 8px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}
.bar-col .bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}
.bar-col .bar.green { background: rgba(27,94,32,0.25); }
.bar-col .bar.accent { background: rgba(249,168,37,0.6); }
.bar-col .bar-label {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
}
.bar-col .bar-label.today { font-weight: 700; }

/* ===========================
   9. ALERTS — Color-coded cards
   =========================== */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}
.alert-item.red { background: #fef2f2; border-color: #fecaca; }
.alert-item.amber { background: #fffbeb; border-color: #fde68a; }
.alert-item.blue { background: #eff6ff; border-color: #bfdbfe; }
.alert-item.green { background: #f0fdf4; border-color: #bbf7d0; }
.alert-item .alert-icon { font-size: 18px; margin-top: 2px; }
.alert-item.red .alert-icon { color: var(--danger); }
.alert-item.amber .alert-icon { color: var(--accent); }
.alert-item.blue .alert-icon { color: var(--info); }
.alert-item.green .alert-icon { color: var(--primary); }
.alert-item .alert-title { font-size: 12px; font-weight: 700; color: var(--gray-800); }
.alert-item .alert-desc { font-size: 10px; color: var(--gray-500); }

/* ===========================
   10. ROUTE CARDS (Dashboard)
   =========================== */
.route-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow 0.2s;
}
.route-card:hover { box-shadow: var(--shadow); }
.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.route-card-header h4 { font-size: 14px; font-weight: 700; }
.route-card-header p { font-size: 12px; color: var(--gray-500); }
.route-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-600);
}
.route-card-stats span { display: flex; align-items: center; gap: 4px; }
.route-card-stats .material-symbols-outlined { font-size: 16px; }
.progress-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}
.progress-bar .fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.progress-bar .fill.green { background: var(--primary); }
.progress-bar .fill.blue { background: #60a5fa; }

/* ===========================
   11. TABLES
   =========================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.erp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.erp-table thead th {
    background: #f0f0eb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
}
.erp-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.erp-table tbody tr:hover { background: #f9f9f5; }
.erp-table tbody tr:last-child td { border-bottom: none; }

/* ===========================
   12. BADGES
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fef2f2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

.badge-activo { background: #dcfce7; color: #166534; }
.badge-inactivo { background: #f3f4f6; color: #4b5563; }
.badge-atrasado { background: #fef2f2; color: #991b1b; }
.badge-pendiente { background: #fef3c7; color: #92400e; }
.badge-completado { background: #dcfce7; color: #166534; }
.badge-no_disponible { background: #fef2f2; color: #991b1b; }
.badge-reprogramado { background: #dbeafe; color: #1e40af; }
.badge-recibido { background: #dcfce7; color: #166534; }
.badge-rechazado { background: #fef2f2; color: #991b1b; }
.badge-dinero { background: #dcfce7; color: #166534; }
.badge-transferencia { background: #dbeafe; color: #1e40af; }
.badge-detergente { background: #fff7ed; color: #c2410c; }
.badge-sin_pago { background: #f3f4f6; color: #4b5563; }
.badge-nacional { background: #dbeafe; color: #1e40af; }
.badge-provincial { background: #f3e8ff; color: #6b21a8; }
.badge-interno { background: #fff7ed; color: #c2410c; }

/* ===========================
   13. BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--gray-800); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-info { background: var(--info); color: var(--white); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--gray-400); }
.btn-sm { padding: 4px 12px; font-size: 11px; }
.btn-pill {
    border-radius: 9999px;
    padding: 6px 14px;
}
.btn-pill.active {
    background: rgba(27,94,32,0.1);
    color: var(--primary);
}
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    color: var(--gray-500);
    font-size: 18px;
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

/* ===========================
   14. FORMS
   =========================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
    color: var(--gray-800);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.form-inline .form-group { margin-bottom: 0; }
.form-inline label {
    display: inline;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--gray-500);
}

/* ===========================
   15. MODALS
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    line-height: 1;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===========================
   16. FILTERS BAR
   =========================== */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filters-bar .form-control { width: auto; min-width: 150px; }

/* ===========================
   17. PAGINATION
   =========================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    list-style: none;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--gray-700);
    text-decoration: none;
}
.pagination li.active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination li.disabled span { color: #ccc; }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }

/* ===========================
   18. MAP CONTAINER
   =========================== */
.map-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    height: calc(100vh - 100px);
}
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.map-container #livemap { height: 100%; width: 100%; min-height: 400px; }

/* Driver cards */
.driver-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.driver-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.driver-card:hover { box-shadow: var(--shadow); }
.driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.driver-info { flex: 1; }
.driver-info .driver-name { font-weight: 600; font-size: 13px; }
.driver-info .driver-ping { font-size: 11px; color: var(--gray-500); }
.driver-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.driver-status.activo { background: var(--primary-light); }
.driver-status.inactivo { background: var(--accent); }
.driver-status.sin_senal { background: var(--danger); }
.map-legend {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    font-size: 11px;
    color: var(--gray-500);
}
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend .dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}

/* ===========================
   19. TABS
   =========================== */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===========================
   20. TOAST
   =========================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease-out;
    max-width: 350px;
}
.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===========================
   21. RUTAS — Driver sections
   =========================== */
.driver-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}
.driver-section-header {
    padding: 12px 16px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.driver-section-header:hover { background: #f0f0eb; }
.driver-section-body { display: none; }
.driver-section.open .driver-section-body { display: block; }
.driver-section.open .driver-section-header .expand-icon { transform: rotate(180deg); }

/* ===========================
   22. INLINE EDIT
   =========================== */
.inline-edit { display: none; }
.inline-edit input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 12px;
}

/* ===========================
   23. REPORT BARS
   =========================== */
.report-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-bar {
    height: 20px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.5s ease;
}

/* ===========================
   24. LOGIN PAGE
   =========================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
}
.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    width: 380px;
    text-align: center;
}
.login-card img { width: 120px; margin-bottom: 24px; }
.login-card h2 { margin-bottom: 24px; font-size: 18px; color: var(--primary); font-weight: 700; }
.login-card .form-group { text-align: left; }
.login-card .btn { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }
.login-error {
    background: #fef2f2;
    color: var(--danger);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

/* ===========================
   25. GRID UTILITIES
   =========================== */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ===========================
   26. UTILITIES
   =========================== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* ===========================
   27. PRINT
   =========================== */
@media print {
    .sidebar, .top-header, .filters-bar, .btn, .pagination { display: none !important; }
    .app-container { display: block; }
    .main-content { margin-left: 0; }
    .page-content { padding: 0; }
    .table-container { box-shadow: none; border: 1px solid #ccc; }
    .erp-table thead th { background: #eee; color: #000; }
    body { font-size: 11px; }
    .print-header { display: block !important; text-align: center; margin-bottom: 20px; }
    .print-header img { width: 80px; }
}
.print-header { display: none; }

/* Notification dropdown */
.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 22px;
    padding: 4px;
}
.notification-bell .badge-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 200;
}
.notification-dropdown.open { display: block; }
.notification-dropdown .noti-header {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}
.notification-dropdown .noti-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    font-size: 12px;
}
.notification-dropdown .noti-item:hover { background: #f9f9f5; }
.notification-dropdown .noti-item .noti-title { font-weight: 600; }
.notification-dropdown .noti-item .noti-time { color: var(--gray-500); font-size: 10px; }
.notification-dropdown .noti-empty { padding: 20px; text-align: center; color: var(--gray-400); font-size: 13px; }
