/* ================================================
   OmniTrack — Design System
   Tema: Navy Claro — mesclado (conteúdo claro +
   navbar/dropdowns em navy escuro, âncora da marca).
   Paleta extraída da logo (azul-céu + dourado + ciano),
   leve (só CSS, sem filtros pesados)
   Fonte: DM Sans + DM Mono
================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
    --white:       #ffffff;
    --bg:          #f2f4f7; /* Fundo geral — cinza claro quase branco */
    --bg-card:     #ffffff; /* Painéis/cards */
    --bg-sidebar:  #0d1720; /* Navbar/topbar/dropdowns — navy escuro, ancora a marca (parte "escura" do mesclado) */
    --bg-topbar:   #0d1720;
    --border:      #e1e5eb;
    --border-dark: #ccd3da;

    --text-primary:   #1b2430;
    --text-secondary: #5b6b7a;
    --text-muted:     #8a96a3;
    --text-white:     #f8fafc; /* Texto sobre a navbar/topbar/dropdowns escuros */

    --accent:        #3b84b5; /* Azul-céu da logo, escurecido pra ler bem como texto/ícone em fundo claro */
    --accent-light:  rgba(59, 132, 181, 0.10);
    --accent-dark:   #2c6690;
    --accent-bright: #4fa3da; /* Tom original da logo — só decorativo sobre fundo escuro (navbar, glow, gradientes) */
    --accent-glow:   rgba(79, 163, 218, 0.35);

    --gold:        #b8860f; /* Dourado da logo, escurecido pra legibilidade em fundo claro */
    --gold-light:  rgba(184, 134, 15, 0.10);
    --gold-bright: #f0c93e; /* Tom original — só decorativo sobre fundo escuro */

    --teal:        #1f8f94; /* Ciano do brilho central da logo, escurecido */
    --teal-light:  rgba(31, 143, 148, 0.10);

    --green:       #2e9e5b; /* Verde de status "sucesso", deliberadamente distinto do accent azul */
    --green-light: rgba(46, 158, 91, 0.12);
    --red:         #dc2626;
    --red-light:   rgba(220, 38, 38, 0.08);
    --yellow:      #b8860f; /* Alias do dourado escurecido, mantido por compatibilidade */
    --yellow-light: rgba(184, 134, 15, 0.10);

    --shadow-sm:  0 1px 3px rgba(16,26,36,0.06), 0 1px 2px rgba(16,26,36,0.04);
    --shadow-md:  0 4px 16px rgba(16,26,36,0.08);
    --shadow-lg:  0 10px 40px rgba(16,26,36,0.12);
    --shadow-glow: 0 0 0 1px var(--accent-glow), 0 4px 16px rgba(79, 163, 218, 0.15);

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  22px;

    --navbar-h:   50px;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 99px; }

/* ================================================
   LAYOUT COM SIDEBAR
================================================ */

.app-layout {
    display: flex;
    flex-direction: column; /* Organiza os elementos de cima para baixo */
    min-height: 100vh;
}

/* ── NAV BAR (Anteriormente Sidebar Lateral) ── */
.sidebar {
    width: 100%;
    height: 60px; /* Reduzido de 70px para 60px */
    height: 50px; /* Reduzido de 60px para 50px */
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: row; /* Itens em linha */
    align-items: center;
    position: sticky;
    top: 0; left: 0;
    z-index: 1100; /* Aumentado para ficar acima de qualquer mapa (Leaflet usa ~1000) */
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white); /* Garante texto claro na sidebar escura */
    padding: 0 24px;
}

.sidebar-logo {
    padding: 0;
    border-bottom: none;
    margin-right: 30px;
    flex-shrink: 0;
}

.logo-mark {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    max-height: 40px; /* Reduzido para encaixar na barra horizontal */
    max-height: 32px; /* Reduzido para encaixar na barra horizontal mais fina */
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
    display: block;
}

.sidebar-logo .logo-text {
    color: var(--text-white);
    font-weight: 700;
}

.sidebar-logo .logo-sub {
    font-size: 10px;
    color: var(--green); /* Verde água da logo */
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'DM Mono', monospace;
    font-weight: 600;
}

.nav-section-label { display: none; } /* Ocultar labels de seção no menu horizontal */

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: row; /* Links de navegação em linha */
    align-items: center;
    gap: 4px;
    padding: 0;
    overflow: visible;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap; /* Evita quebra de texto nos links */
    margin-bottom: 2px;
}

.nav-item.active {
    background: rgba(79, 163, 218, 0.16) !important;
    border: 1px solid var(--accent-bright);
    color: var(--accent-bright) !important;
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent-glow) inset, 0 2px 8px var(--accent-glow);
    padding: 8px 11px; /* -1px pra compensar a borda nova e manter o alinhamento */
}

.nav-item:not(.active) {
    border: 1px solid transparent;
}

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

.nav-item:hover .nav-icon {
    transform: translateY(-1px);
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; display: inline-block; transition: transform 0.15s ease; }

/* ── SUBMENUS (DROPDOWN) ── */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.5;
}

.nav-dropdown-content {
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    /* Fundo escuro fixo (não usa --bg-card) — o dropdown é uma extensão da navbar,
       então continua "escuro" mesmo com o conteúdo principal claro (visual mesclado) */
    background: var(--bg-sidebar);
    min-width: 220px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    padding: 12px 8px;
    z-index: 1200;
    border-top: 3px solid var(--gold-bright); /* Linha de destaque dourada — diferencia "menu aberto" do azul de link ativo */
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-content .nav-item {
    margin-bottom: 4px;
    color: var(--text-white);
}

.nav-dropdown-content .nav-item:hover {
    background: var(--accent-bright); /* Azul ao passar o mouse */
    color: white;
}

.sidebar-footer {
    padding: 0;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── CONTEÚDO PRINCIPAL ── */
.main-content {
    margin-left: 0; /* Remove o recuo da antiga sidebar */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--navbar-h);
    background: linear-gradient(180deg, #101c27 0%, var(--bg-topbar) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 60px; /* Alinhado com a nova altura da sidebar */
    top: 50px; /* Alinhado com a nova altura da sidebar */
    z-index: 1050; /* Abaixo da navbar principal, mas acima do conteúdo/mapas */
    color: var(--text-white);
    transition: box-shadow 0.2s ease;
}
.topbar.is-scrolled {
    box-shadow: 0 4px 16px rgba(16, 26, 36, 0.18);
}

.topbar-title { 
    font-size: 17px; 
    font-weight: 600; 
    color: var(--text-white); 
}
.topbar-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.page-body {
    padding: 28px;
    flex: 1;
    /* Textura sutil de grid "HUD" — 100% CSS, sem imagem, sem custo de renderização */
    background-image:
        linear-gradient(rgba(59, 132, 181, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 132, 181, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    animation: card-rise 0.3s ease-out;
}
.card:hover {
    border-color: var(--border-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .card, .stat-card { animation: none; }
}

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

.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── STAT CARDS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    animation: card-rise 0.3s ease-out;
}
.stat-card:hover {
    border-color: var(--border-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.stat-value { font-family: 'DM Mono', monospace; font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── USER CARD ── */
.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.user-avatar {
    width: 32px; height: 32px;
    width: 28px; height: 28px;
    background: var(--accent-bright);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.user-name { font-size: 13px; font-weight: 600; color: var(--text-white); }
.user-role { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* ================================================
   STAT CARDS (Mapeando as cores da logo nos ícones)
================================================ */

.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-icon.blue   { background: var(--accent-light); color: var(--accent); }
.stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-icon.red    { background: var(--red-light); color: var(--red); }

/* ── TABELAS ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 2px solid var(--border); }
th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 10px 14px;
    font-family: 'DM Mono', monospace;
}
td { padding: 14px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
tbody tr:hover { background: rgba(16, 26, 36, 0.035); }

/* Detalhe para o card de "Online agora" usar o Verde Água */
.status-indicator-online {
    color: var(--green);
    font-weight: 700;
}

/* ================================================
   BOTÕES E ELEMENTOS DE AÇÃO
================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* Efeito "ripple" ao clicar (disparado via static/js/ui-polish.js) */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: btn-ripple-anim 0.5s ease-out;
    pointer-events: none;
}
@keyframes btn-ripple-anim {
    to { transform: scale(2.2); opacity: 0; }
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(16, 26, 36, 0.04);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 0 rgba(0,0,0,0.25);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #5cadde 0%, var(--accent) 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 16px var(--accent-glow);
}
.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 0 rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(180deg, var(--green) 0%, #279961 100%);
    color: #0c2016; /* Texto escuro no verde para melhor leitura */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 0 rgba(0,0,0,0.2);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 16px var(--green-light);
}
.btn-success:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 0 rgba(0,0,0,0.15);
}

.btn-danger {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(240, 85, 90, 0.35);
}
.btn-danger:hover {
    background: rgba(240, 85, 90, 0.18);
    transform: translateY(-1px);
}

/* ── FORMULÁRIOS ── */
.form-group { margin-bottom: 16px; position: relative; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
}

/* Ajuste no foco do input para usar o azul da marca */
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Estilos para Validação */
.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--red);
}
.required-mark { color: var(--red); font-weight: bold; margin-left: 2px; }

.form-group.is-loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 35px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── AUTOCOMPLETE SUGGESTIONS ── */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 3000; /* Acima do modal (2000) */
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 2px;
}
.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--bg);
}
.suggestion-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.col-span-2 { grid-column: span 2; }

/* ── INFO CAPACITY (PLAN LIMITS) ── */
.capacity-info-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.capacity-item .val { font-size: 18px; font-weight: 700; color: var(--accent); display: block; }
.capacity-item .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

/* ── SPEED INDICATOR ── */
.speed-indicator {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* ── MODAIS ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 0;
    justify-content: center;
}
.modal-overlay.open { 
    display: flex; 
    align-items: flex-start;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 560px;
    margin: auto;
    position: relative;
}
.modal-lg { max-width: 720px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-blue   { background: var(--accent-light); color: var(--accent); }
.badge-yellow { background: var(--yellow); color: #854d0e; } /* Amarelo Logo com texto escuro */
.badge-gray   { background: rgba(16, 26, 36, 0.06); color: var(--text-muted); }

.dot-green  { background: var(--green); box-shadow: 0 0 8px var(--green), 0 0 0 4px var(--teal-light); animation: dot-pulse 2s ease-in-out infinite; }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow), 0 0 0 4px var(--gold-light); animation: dot-pulse 2s ease-in-out infinite; }

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ================================================
   ESTRUTURA DA TELA DE LOGIN (Limpa e Padronizada)
================================================ */

.login-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-right {
    flex: 1;
    max-width: 550px;
    background-color: var(--bg-card) !important;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 60px;
    z-index: 2;
}

.login-right h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-right .subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.login-right label {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.login-right .form-input {
    color: var(--text-primary) !important;
    background-color: var(--bg) !important;
    border: 1.5px solid var(--border);
    height: 44px;
    margin-bottom: 12px;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-sidebar) 0%, #060a10 100%);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    z-index: 1;
}

.login-brand h1 {
    font-size: 32px;
    font-weight: 700;
    color: white !important; /* Força título branco no lado escuro */
    margin: 0;
}

.logo-box {
    width: 50px;
    height: 50px;
    background: var(--accent-bright);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    z-index: 1;
}

.login-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.login-feature-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-bright);
}

.login-feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.login-feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Estilo do link de saída */
.btn-logout-sidebar {
    color: #ff6b6b;
}
.btn-logout-sidebar:hover { 
    background: rgba(255, 107, 107, 0.1); 
}

/* ── ANIMAÇÕES DE ALERTA (CERCA VIRTUAL) ── */
.blink-danger {
    animation: blink-red-bg 0.6s infinite !important;
}

@keyframes blink-red-bg {
    0%, 100% { background-color: var(--bg-card); }
    50% { background-color: rgba(220, 38, 38, 0.6); }
}

@keyframes blink-red-text {
    0%, 100% { color: inherit; }
    50% { color: var(--red); }
}

.text-alert-blink {
    animation: blink-red-text 0.6s infinite !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
}

@keyframes marker-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8); transform: scale(1); border-color: white; }
    50% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); transform: scale(1.2); border-color: #dc2626; }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); transform: scale(1); border-color: white; }
}

.marker-alert-blink {
    animation: marker-pulse-red 1s infinite !important;
    background-color: var(--red) !important;
}