@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');


/* ==========================================
   ONBOARDING Midnight Edition (ob-* classes)
   Dark mode, neon-green accents, 3-slide carousel
   ========================================== */

/* Overlay de fundo */
.ob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: obFadeIn 0.35s ease;
}

.ob-overlay.ob-oculto {
    display: none;
}

@keyframes obFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Card central */
.ob-card {
    background: #2a2a2d;
    border-radius: 24px;
    width: 100%;
    max-width: 370px;
    padding: 36px 0 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(57, 255, 20, 0.08);
    /* CRITICAL: cria um contexto de stacking que impede o trilho de vazar */
    overflow: hidden;
    animation: obSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes obSlideUp {
    from { transform: translateY(36px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Trilho do carrossel ── */
.ob-track {
    display: flex;
    width: 100%;
}

/* Cada slide ocupa exatamente 100% do trilho */
.ob-slide {
    width: 100%;
    flex-shrink: 0;            /* Não encolhe — é empurrado pelo translateX */
    text-align: center;
    padding: 0 28px;
    box-sizing: border-box;
    transition: none;          /* A animação é feita no ob-track via JS */
}

/* Ícone neon */
.ob-icone {
    font-size: 2.4rem;
    color: #39ff14;
    text-shadow: 0 0 18px rgba(57, 255, 20, 0.75),
                 0 0 36px rgba(57, 255, 20, 0.35);
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

/* Título do slide — branco */
.ob-titulo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
}

/* Subtítulo — cinza claro */
.ob-subtitulo {
    font-size: 0.88rem;
    color: #b3b3b3;
    line-height: 1.65;
    margin: 0;
}

/* ── Dots indicadores ── */
.ob-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 22px;
    padding: 0 28px;
    box-sizing: border-box;
}

.ob-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.ob-dot.ob-dot-ativo {
    background: #39ff14;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

/* ── Botões de ação ── */
.ob-acoes {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 28px;
    box-sizing: border-box;
}

/* Skip — texto cinza médio, discreto */
.ob-btn-pular {
    background: none;
    border: none;
    color: #777;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px 4px;
    font-family: inherit;
    transition: color 0.2s;
    white-space: nowrap;
}

.ob-btn-pular:hover { color: #aaa; }

/* Próximo — verde neon, texto preto em negrito */
.ob-btn-proximo {
    flex: 1;
    background: #39ff14;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 13px 24px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(57, 255, 20, 0.45);
    letter-spacing: 0.2px;
}

.ob-btn-proximo:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(57, 255, 20, 0.6);
}

.ob-btn-proximo:active {
    transform: scale(0.97);
}

/* ==========================================
   DIVINOMAPA BETA - ESTILOS OTIMIZADOS FINAL
   Melhorias: UI/UX, Responsividade, Login Social
   ========================================== */

/* ================= VARIÃVEIS CSS ================= */
:root {
    /* Cores principais */
    --primary-blue: #0A3D62;
    --accent-orange: #F27D23;
    --bg-off-white: #1A1A1D;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Sombras e efeitos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* TransiÃ§Ãµes */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Z-index (organizado) */
    --z-map: 1;
    --z-controls: 1000;
    --z-panel: 1001;
    --z-header: 1002;
    --z-context-menu: 5000;
    --z-modal: 6000;
    --z-mobile-toggle: 10000;
}

/* ====================================================
   TIPOGRAFIA E ESTRUTURA GLOBAL — Reset, body, html, skip-link
===================================================== */
/* ================= RESET E BASE ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-off-white);
    color: var(--text-dark);
    line-height: 1.5;
    height: 100vh;
    /* Altura total da viewport */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Impede rolagem da pÃ¡gina inteira */
}

#btn-mobile-toggle {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: var(--z-mobile-toggle);
    background: rgba(18, 20, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(57, 255, 110, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
    font-size: 1.4rem;
    color: #a3ff00;
    text-shadow: 0 0 8px rgba(163, 255, 0, 0.5);
}

#btn-mobile-toggle:active {
    background: rgba(18, 20, 26, 0.95);
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(0,0,0,0.5);
}
/* ================= SKIP LINK (ACESSIBILIDADE) ================= */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* ====================================================
   HEADER E NAVEGAÇÃO — Cabeçalho, logo, menu e botão Minha Conta
===================================================== */
/* ================= CABEÇALHO ================= */
.main-header {
    background: #111114;
    border-bottom: 1px solid rgba(57, 255, 110, 0.12);
    color: white;
    padding: 0 24px;

    /* AJUSTE IPHONE: área segura e altura */
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    z-index: var(--z-header);
    position: relative;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    /* Largura mínima simétrica ao user-area para centralizar a nav */
    min-width: 220px;
}

.logo-area:hover {
    opacity: 0.95;
}

/* Imagem da logo */
.logo-site {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-left: 10px;
}

/* Hambúrguer oculto no desktop */
#btn-mobile-toggle {
    display: none;
}

/* Logo SVG */
.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0px 4px 8px rgba(13, 148, 136, 0.15));
    transition: var(--transition-fast);
}

.logo-area:hover .logo-icon {
    filter: drop-shadow(0px 6px 12px rgba(13, 148, 136, 0.25));
    transform: translateY(-1px);
}

/* Texto da Logo */
.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.brand-name {
    color: white;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



.logo-text .tagline {
    font-size: 0.68rem;
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 3px;
}

/* Navegação Desktop */
.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    /* Para centralizar verdadeiramente, a nav precisa de espaço simétrico */
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: #39FF6E;
    background-color: rgba(57, 255, 110, 0.07);
    text-shadow: 0 0 12px rgba(57, 255, 110, 0.55);
}

/* Ícone Instagram na nav */
.nav-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px !important;
    transition: all 0.2s ease !important;
}

.nav-instagram svg {
    transition: stroke 0.2s ease, filter 0.2s ease;
}

.nav-instagram:hover {
    color: #39FF6E !important;
    background-color: rgba(57, 255, 110, 0.07) !important;
    text-shadow: none !important;
}

.nav-instagram:hover svg {
    stroke: #39FF6E;
    filter: drop-shadow(0 0 6px rgba(57, 255, 110, 0.6));
}

@media (max-width: 768px) {
    .nav-instagram {
        display: none !important;
    }
}

/* ================= BOTÕES DE LOGIN (PADRONIZADOS) ================= */
.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Mesma largura mínima que a logo-area para centralizar a nav */
    min-width: 220px;
    justify-content: flex-end;
}

#user-logged-in {
    display: none;
    align-items: center;
    gap: 10px;
}

#user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

#user-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

#badge-admin {
    display: none;
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

/* BotÃµes Sociais (Google/Apple) */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 38px;
    padding: 0 16px;

    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-social:active {
    transform: scale(0.96);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* Tema Google */
.btn-google {
    background-color: white;
    color: #3c4043;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Tema Apple */
.btn-apple {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.btn-apple:hover {
    background-color: #333333;
    border-color: #333333;
}

/* BotÃ£o Sair no Header */
.main-header .btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.main-header .btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ================= BOTÃO MINHA CONTA (HEADER — desktop only) ================= */
.btn-minha-conta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2d;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-minha-conta:hover {
    background: #3a3a3e;
    transform: translateY(-1px);
}

.btn-minha-conta:active {
    transform: scale(0.96);
}

/* Oculto no mobile — o botão "Perfil" na bottom nav substitui */
@media (max-width: 768px) {
    .btn-minha-conta {
        display: none !important;
    }
}

/* ================= LOCALIZADOR (ABAIXO DO ZOOM NATIVO) ================= */
.leaflet-control-localizar {
    position: absolute;
    /* Alinhado abaixo do controle de zoom nativo do Leaflet */
    /* O zoom nativo do Leaflet (topright) fica em torno de top:10px */
    /* Dois botões de 44px + bordas = ~110px */
    top: 115px;
    right: 10px;
    z-index: 1000;
}

/* ================= BOTÃO NOVA OCORRÊNCIA (DESKTOP FAB) ================= */
.btn-nova-ocorrencia-desktop {
    display: none !important; /* Oculto pois a marcação passou a ser feita pelo clique no mapa (context-item) */
}

@keyframes fab-pulse-desktop {
    0%, 100% {
        box-shadow: 0 0 20px rgba(163, 255, 0, 0.6), 0 4px 12px rgba(0,0,0,0.35);
    }
    50% {
        box-shadow: 0 0 32px rgba(163, 255, 0, 0.85), 0 4px 12px rgba(0,0,0,0.35);
    }
}

/* No mobile, o FAB desktop é oculto (usa o fab-reportar) */
@media (max-width: 768px) {
    .btn-nova-ocorrencia-desktop {
        display: none;
    }
}

/* ================= MAPA ================= */
.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    background-color: #1A1A1D;
}

#map {
    width: 100%;
    height: 100%;
    z-index: var(--z-map);
}

/*
 * Filtro midnight: Clareia o CartoDB Dark Matter preservando as cores
 * geográficas da água (azul) e da vegetação (verde).
 * hue-rotate negativo traz os azuis da água para ciano-teal.
 */
.leaflet-tile-pane {
    filter: brightness(1.45) saturate(1.8) hue-rotate(-12deg) contrast(0.9);
}

/* ================= POPUP GLASSMORPHISM ================= */

/* Zera o fundo branco padrão do Leaflet */
.leaflet-popup-content-wrapper {
    background: transparent !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    border: none !important;
}

.leaflet-popup-tip-container {
    display: none;
    /* remove a seta branca */
}

/* Card Glass principal */
.popup-glass {
    background: rgba(22, 24, 30, 0.88);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(57, 255, 110, 0.06);
    overflow: hidden;
    width: 290px;
    max-width: 90vw;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

/* Cabeçalho do card */
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px 16px;
    gap: 8px;
}

.popup-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.92);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-header-cam {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-header-cam:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Imagem da ocorrência */
.popup-img-wrap {
    padding: 0 10px 0 10px;
}

.popup-img-wrap img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popup-img-wrap img:hover {
    opacity: 0.88;
}

/* Metadados (data, protocolo) */
.popup-meta {
    padding: 10px 14px 4px 14px;
}

.popup-meta-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 4px;
}

.popup-meta-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.popup-protocolo {
    display: inline-block;
    margin-top: 4px;
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(57, 255, 110, 0.75);
    letter-spacing: 0.5px;
}

/* Rodapé de ações */
.popup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px 14px;
}

/* Botão APOIAR */
.btn-apoiar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #a3ff00;
    color: #0d1a00;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(163, 255, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-apoiar:hover {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(163, 255, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-apoiar:active {
    transform: scale(0.96);
}

.btn-apoiar.ja-apoiou {
    background: rgba(163, 255, 0, 0.18);
    color: #a3ff00;
    box-shadow: 0 0 10px rgba(163, 255, 0, 0.25);
    cursor: not-allowed;
}

.btn-apoiar i {
    font-size: 1rem;
}

/* Contador de apoios */
.popup-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 48px;
}

.popup-counter-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #a3ff00;
    text-shadow: 0 0 10px rgba(163, 255, 0, 0.6);
}

.popup-counter-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Botão REPORTAR FALSO */
.btn-reportar-falso {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    line-height: 1.2;
}

.btn-reportar-falso:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ff7070;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-reportar-falso i {
    font-size: 0.9rem;
}

/* Botões admin/excluir no estílo dark */
.popup-btn-admin {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.popup-btn-deletar {
    background: rgba(220, 38, 38, 0.15);
    color: #ff7070;
    border-color: rgba(220, 38, 38, 0.3);
}

.popup-btn-deletar:hover {
    background: rgba(220, 38, 38, 0.3);
}

.popup-btn-foto {
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.25);
}

.popup-btn-foto:hover {
    background: rgba(37, 99, 235, 0.22);
}

.popup-btn-resolver {
    background: rgba(22, 163, 74, 0.12);
    color: #86efac;
    border-color: rgba(22, 163, 74, 0.25);
}

.popup-btn-resolver:hover {
    background: rgba(22, 163, 74, 0.22);
}

/* Botão fechar no estílo dark */
.leaflet-container a.leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.35);
}

/* ================= FORMULÁRIO NO POPUP — DARK GLASS ================= */
.form-popup-container {
    width: 280px;
    max-width: 90vw;
    padding: 18px 16px 120px;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;

    /* Vidro fosco escuro — midnight glassmorphism */
    background: #1a1a1d;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 15px;
    border: 1px solid rgba(57, 255, 110, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(57, 255, 110, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-popup-container h4 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(57, 255, 110, 0.2);
    letter-spacing: 0.3px;
}

.form-popup-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.form-popup-container select,
.form-popup-container textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #3f3f46;
    border-radius: 10px;
    background: #2a2a2d;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    /* Seta do select customizada */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-popup-container textarea {
    background-image: none;
    padding-right: 12px;
    resize: none;
    line-height: 1.5;
}

.form-popup-container select option {
    background: #16181e;
    color: #fff;
}

.form-popup-container select:focus,
.form-popup-container textarea:focus {
    outline: none;
    border-color: rgba(57, 255, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(57, 255, 110, 0.1);
}

.form-popup-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Contador de caracteres */
.form-popup-container small {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.7rem;
}

/* Área de upload */
.upload-area {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px dashed rgba(57, 255, 110, 0.3);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    margin: 4px 0 14px 0;
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
    background: rgba(57, 255, 110, 0.06);
    border-color: rgba(57, 255, 110, 0.55);
    color: rgba(255, 255, 255, 0.8);
}

/* Botão REPORTAR — verde-neon */
.form-popup-container button {
    margin-top: 4px;
    padding: 13px !important;
    font-size: 0.88rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    border: none;
    border-radius: 10px;
    color: #000;
    background: #39ff14 !important;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 10px #39ff14;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-popup-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(163, 255, 0, 0.75), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.form-popup-container button:active {
    transform: scale(0.97);
}

/* Preview da foto no topo do formulário mobile */
.form-foto-preview-wrap {
    width: calc(100% + 32px);
    margin: -18px -16px 16px -16px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    border: none;
}

.form-foto-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

/* ================= PAINEL LATERAL DE FILTROS ================= */
.floating-panel,
#painel-filtros {
    position: absolute;
    top: 90px;
    left: 20px;
    width: 240px;
    /* Glassmorphism midnight */
    background: rgba(10, 14, 22, 0.78);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(57, 255, 110, 0.22);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(57, 255, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    z-index: var(--z-panel);
    max-height: calc(100vh - 120px);
    overflow-y: auto;

    display: none;
}

#painel-filtros.ativo {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-panel::-webkit-scrollbar {
    width: 4px;
}

.floating-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Indicador de Swipe (Mobile) */
#painel-filtros::before {
    content: '';
    display: none;
    /* Escondido por padrÃ£o */
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 10px;
    z-index: 10;
}

/* Mostra o indicador apenas em mobile quando o painel estÃ¡ ativo */
@media (max-width: 768px) {
    #painel-filtros.ativo::before {
        display: block;
    }

    /* Ajusta padding do topo para dar espaÃ§o ao indicador */
    #painel-filtros.ativo {
        padding-top: 20px;
    }
}

#painel-filtros h3 {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(57, 255, 110, 0.2);
    color: #39ff14;  /* Verde-neon em vez de branco */
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Adicionar larguras especÃ­ficas para as colunas */
.tabela-admin th,
.tabela-admin td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* Larguras especÃ­ficas das colunas */
.tabela-admin th:nth-child(1),
.tabela-admin td:nth-child(1) {
    width: 80px;
    /* Foto */
}

.tabela-admin th:nth-child(2),
.tabela-admin td:nth-child(2) {
    width: 120px;
    /* Tipo */
}

.tabela-admin th:nth-child(3),
.tabela-admin td:nth-child(3) {
    width: 35%;
    /* DescriÃ§Ã£o - mais espaÃ§o */
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabela-admin th:nth-child(4),
.tabela-admin td:nth-child(4) {
    width: 110px;
    /* Data */
}

.tabela-admin th:nth-child(5),
.tabela-admin td:nth-child(5) {
    width: 120px;
    /* AÃ§Ã£o */
    text-align: center;
}

.btn-filter-map {
    background: transparent;
    border: 1px solid #eee;
    padding: 8px 12px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-filter-map:hover {
    background: #f8f9fa;
    padding-left: 16px;
}

.btn-filter-map.ativo {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(10, 61, 98, 0.2);
}

.separator {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin: 12px 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

/* ================= CARDS E OUTROS ================= */
.card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ================= CONTROLES DE ZOOM NATIVO DO LEAFLET ================= */
.leaflet-control-zoom {
    border: 1px solid rgba(57, 255, 110, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-zoom a {
    background: rgba(18, 20, 26, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #a3ff00 !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 1.4rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.2s, color 0.2s !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(26, 30, 38, 0.95) !important;
    color: #fff !important;
}

/* Localizador nativo (btn-localizar custom) reposicionado (agora abaixo do zoom nativo via JS) */
#btn-localizar {
    width: 44px;
    height: 44px;
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(57, 255, 110, 0.2);
    border-radius: 12px;
    color: #a3ff00;
    font-size: 1.2rem;
    transform: scale(1.05);
}

.zoom-controls button:active {
    transform: scale(0.95);
}

/* ================= GPS EM TEMPO REAL ================= */

/* Marcador de posição do usuário */
.gps-marker-pulse {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-marker-dot {
    width: 14px;
    height: 14px;
    background: #3B82F6;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
    position: relative;
    z-index: 2;
}

.gps-marker-pulse::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.35);
    border-radius: 50%;
    animation: gps-pulse 1.8s ease-out infinite;
}

@keyframes gps-pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Botão de GPS quando ativo */
#btn-localizar.gps-ativo {
    background: #EFF6FF;
    color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    outline: none;
    animation: gps-btn-pulse 2s ease-in-out infinite;
}

@keyframes gps-btn-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    }
}

/* ================= MARCADOR RESOLVIDO ================= */

.marker-resolvido {
    width: 38px;
    height: 38px;
    background: white;
    border: 3px solid #22C55E;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: marker-resolvido-pulse 2.5s ease-in-out infinite;
    position: relative;
}

.marker-resolvido::after {
    content: '✅';
    position: absolute;
    font-size: 11px;
    top: -6px;
    right: -6px;
    background: white;
    border-radius: 50%;
    line-height: 1;
}

/* ================= MARKER CLUSTER — MIDNIGHT NEON ================= */

/* Anula os estilos padrão amarelo/verde do plugin */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Oculta o fundo padrão do MarkerCluster.Default.css */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: transparent !important;
    color: inherit !important;
}

/* Círculo customizado gerado pelo iconCreateFunction */
.cluster-midnight {
    background: rgba(18, 20, 26, 0.92);
    border: 1.5px solid rgba(57, 255, 110, 0.55);
    border-radius: 50%;
    color: #ffffff;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(57, 255, 110, 0.1),
        0 0 14px rgba(57, 255, 110, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cluster-midnight:hover {
    box-shadow:
        0 0 0 6px rgba(57, 255, 110, 0.15),
        0 0 24px rgba(57, 255, 110, 0.7),
        0 4px 20px rgba(0, 0, 0, 0.7);
    transform: scale(1.08);
}

@keyframes marker-resolvido-pulse {

    0%,
    100% {

        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* ================= MARCADORES NEON (DROP PIN) ================= */

/*
 * Estrutura:
 *   .neon-marker     → quadrado 40×40 rotacionado -45deg → gota
 *     .nm-inner      → desfaz a rotação (+45deg) → emoji reto
 *
 * border-radius: 50% 50% 50% 0  cria canto pontiagudo no canto inf-esq.
 * Após rotate(-45deg) a ponta aponta para baixo (south) — padrão de pin.
 */
.neon-marker {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
    cursor: pointer;
}

.neon-marker:hover {
    transform: rotate(-45deg) scale(1.18);
}

.nm-inner {
    transform: rotate(45deg);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    user-select: none;
    /* Sombra para o emoji se destacar do fundo colorido */
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

/* ── Variantes por categoria — preenchimento sólido ── */
.neon-buraco {
    background: rgba(239, 68, 68, 0.88);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(255, 150, 150, 0.6);
}

.neon-buraco:hover {
    box-shadow: 0 0 26px rgba(239, 68, 68, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-iluminacao {
    background: rgba(245, 158, 11, 0.88);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(255, 215, 100, 0.6);
}

.neon-iluminacao:hover {
    box-shadow: 0 0 26px rgba(245, 158, 11, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-vegetacao {
    background: rgba(16, 185, 129, 0.88);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(100, 255, 200, 0.6);
}

.neon-vegetacao:hover {
    box-shadow: 0 0 26px rgba(16, 185, 129, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-vazamento {
    background: rgba(59, 130, 246, 0.88);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(140, 195, 255, 0.6);
}

.neon-vazamento:hover {
    box-shadow: 0 0 26px rgba(59, 130, 246, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-lixo {
    background: rgba(139, 92, 246, 0.88);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(190, 160, 255, 0.6);
}

.neon-lixo:hover {
    box-shadow: 0 0 26px rgba(139, 92, 246, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-placa {
    background: rgba(220, 38, 38, 0.88);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(255, 120, 120, 0.6);
}

.neon-placa:hover {
    box-shadow: 0 0 26px rgba(220, 38, 38, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.neon-outros {
    background: rgba(242, 125, 35, 0.88);
    box-shadow: 0 0 14px rgba(242, 125, 35, 0.75), inset 0 0 4px rgba(255, 255, 255, 0.15);
    border: 2.5px solid rgba(255, 185, 110, 0.6);
}

.neon-outros:hover {
    box-shadow: 0 0 26px rgba(242, 125, 35, 1), inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* ================= FOTOS ANTES/DEPOIS ================= */


.foto-antes-depois {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.foto-lado {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.foto-lado img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.foto-lado img:hover {
    transform: scale(1.03);
}

.foto-seta {
    font-size: 1.4rem;
    color: #22C55E;
    font-weight: bold;
    flex-shrink: 0;
}

/* SVG do botão de GPS ativo fica azul */
#btn-localizar.gps-ativo svg {
    stroke: #3B82F6;
}

/* Container do botÃ£o reportar (centralizado na parte inferior) */
#context-menu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50px;
    box-shadow: none;
    display: none;
    /* ComeÃ§a oculto, JavaScript mostra quando necessÃ¡rio */
    justify-content: center;
    align-items: center;
    width: auto !important;
}

/* BotÃ£o de reportar */
.context-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0d1a00;
    background: #a3ff00;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 20px rgba(163, 255, 0, 0.6);
    padding: 13px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.15s;
    animation: fab-pulse-desktop 2.8s ease-in-out infinite;
}

.context-item:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(163, 255, 0, 0.8);
    background-color: #a3ff00;
}

.context-item:active {
    transform: scale(0.96);
}

/* ================= MODAIS ================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}

/* Modal overlay mais escuro para admin */
#painel-admin-modal.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    animation: modalSlideUp 0.3s ease-out;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal de estatÃ­sticas (mais compacto) */
#modal-estatisticas .modal-box {
    max-width: 400px;
    padding: 15px;
    max-height: 95vh;
}

#modal-estatisticas .btn-fechar {
    width: auto;
    /* NÃ£o ocupa mais a tela toda */
    min-width: 120px;
    /* Tamanho mÃ­nimo confortÃ¡vel */
    display: block;
    /* Permite centralizar */
    margin: 15px auto 0 auto;
    /* Centraliza na tela */

    padding: 8px 20px;
    /* Mais fino */
    font-size: 0.85rem;
    /* Letra menor */

    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#modal-estatisticas .btn-fechar:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

/* ================= ESTATÃSTICAS NO MODAL ================= */
.stats-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

.stats-grid-modal .stat-card {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    transition: transform 0.2s;
}

.stats-grid-modal .stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1F2937;
    margin: 2px 0;
    line-height: 1;
}

.stats-grid-modal .stat-name {
    font-size: 0.6rem;
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-grid-modal .stat-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Card total (ocupa 2 colunas) */
.stats-grid-modal .stat-card.total-card {
    grid-column: span 2;
    background: #e0f2fe;
    border-color: #bae6fd;
    flex-direction: row;
    gap: 10px;
    min-height: 45px;
}

.stats-grid-modal .stat-card.total-card .stat-value {
    font-size: 1.3rem;
    color: #0284c7;
}

.stats-grid-modal .stat-card.total-card .stat-name {
    font-size: 0.7rem;
    color: #0369a1;
}

.stats-grid-modal .stat-card.total-card .stat-icon {
    font-size: 1.4rem;
}

/* Botão hambúrguer: oculto por padrão (só aparece em mobile via @media) */
#btn-mobile-toggle {
    display: none;
}

/* ================= RESPONSIVO - MOBILE ================= */
@media (max-width: 768px) {

    /* Esconde elementos desktop */
    .main-nav {
        display: none !important;
    }

    .user-area {
        display: none !important;
    }

    /* Logo mobile - mostra nome completo */
    .logo-area {
        gap: 10px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1rem;
    }



    .logo-text .tagline {
        font-size: 0.65rem;
        display: block;
        /* MantÃ©m visÃ­vel */
    }

    /* CabeÃ§alho compacto com iPhone Fix */
    /* Cabeçalho mobile: logo à esquerda, hamburger à direita */
    .main-header {
        height: calc(60px + env(safe-area-inset-top));
        padding: 0 12px;
        padding-top: env(safe-area-inset-top);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Escondem-se no mobile — o hamburger dá acesso ao painel */
    .main-nav,
    .user-area {
        display: none !important;
    }

    /* Logo sem min-width no mobile */
    .logo-area {
        min-width: unset;
    }

    /* Botão Hambúrguer: inline no header, canto direito */
    #btn-mobile-toggle {
        display: flex !important;
        position: static;            /* dentro do header — não fixed */
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        background: transparent;
        color: #39ff14;
        border: none;
        border-radius: 10px;
        font-size: 1.5rem;
        cursor: pointer;
        text-shadow: 0 0 8px rgba(57, 255, 20, 0.7);
        transition: opacity 0.2s, transform 0.15s;
        z-index: var(--z-mobile-toggle);
    }

    #btn-mobile-toggle:active {
        transform: scale(0.9);
        opacity: 0.75;
    }

    #btn-mobile-toggle.ativo-btn {
        color: #fff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    /* Zoom Controls */
    .zoom-controls {
        bottom: 90px;
        right: 15px;
    }

    /* Painel estilo Gaveta (Bottom Sheet) */
    .floating-panel,
    #painel-filtros {
        display: none;
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        top: auto;
        max-height: 70vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        padding-top: 25px;
        /* EspaÃ§o para o indicador */
        animation: slideUpPanel 0.3s ease-out;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        overflow-x: hidden;

        /* Permite transformaÃ§Ãµes suaves durante o swipe */
        will-change: transform, opacity;
    }

    .floating-panel.ativo,
    #painel-filtros.ativo {
        display: flex;
        flex-direction: column;
    }

    /* Indicador de Arraste (Drag Handle) */
    .floating-panel::before,
    #painel-filtros::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 10px;
        z-index: 10;

        /* AnimaÃ§Ã£o sutil para chamar atenÃ§Ã£o */
        animation: pulseHandle 2s ease-in-out infinite;
    }

    @keyframes pulseHandle {

        0%,
        100% {
            opacity: 0.6;
        }

        50% {
            opacity: 1;
        }
    }

    @keyframes slideUpPanel {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
        }
    }

    /* BotÃ£o "Minha Conta" centralizado na parte inferior em mobile */
    .fab-perfil {
        top: auto !important;
        bottom: 20px !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Ajustes em BotÃµes Sociais para telas muito pequenas */
    @media (max-width: 380px) {
        .btn-social {
            height: 40px;
            padding: 0 20px;
            min-width: 120px;
        }
    }
}

/* ================= LOADING ================= */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
    text-align: center;
}

/* ================= UTILITÃRIOS ================= */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==============================================
   LOADING OVERLAY — Análise de Foto pela IA
   ============================================== */
#loading-ia {
    display: none; /* visível via JS: display: flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.lia-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 32px;
}

.lia-icon {
    font-size: 2.6rem;
    color: #39ff14;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.8), 0 0 40px rgba(57, 255, 20, 0.4);
}

.lia-texto {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #39ff14;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.4px;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

/* =========================================
   PAINEL DO USUÃRIO (GAMIFICADO)
   ========================================= */

/* 1. BotÃ£o Flutuante (O que abre o painel) */
.fab-perfil {
    position: fixed !important;
    top: 80px;
    right: 20px;
    z-index: 9999 !important;
    background: white;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, background-color 0.2s;
    display: none;
}

.fab-perfil:hover {
    transform: scale(1.05);
    background-color: #f8f8f8;
}

/* ===========================================
   BOTTOM SHEET — Nova Ocorrência (Mobile)
   Oculto por padrão, flutua sobre o mapa
   =========================================== */

/* Overlay escurecido atrás do sheet */
.bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 8000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bs-overlay.aberto {
    opacity: 1;
    pointer-events: auto;
}

/* O painel em si — escondido abaixo da tela */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8001;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Glassmorphism midnight neon */
    background: #121212;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #39ff14;
    border-radius: 24px 24px 0 0;
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(57, 255, 110, 0.06);

    /* OCULTO por padrão — desliza de baixo para cima */
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;

    /* Espaço para evitar corte do botão + safe area */
    padding-bottom: 80px;
}

/* Estado aberto — visível */
.bottom-sheet.aberto {
    transform: translateY(0);
}

/* Handle bar para swipe */
.bs-handle-bar {
    width: 44px;
    height: 5px;
    background: #39ff14;
    border-radius: 10px;
    margin: 14px auto 0;
}

/* Cabeçalho do sheet */
.bs-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px 8px;
    border-bottom: 1px solid rgba(57, 255, 110, 0.15);
}

.bs-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.bs-fechar {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #39ff14;
    font-size: 1.4rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.bs-fechar:hover {
    background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
}

/* Área de conteúdo do formulário */
.bs-body {
    padding: 16px 16px 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centralização dos elementos do formulário */
.bs-body label,
.bs-body select,
.bs-body input,
.bs-body textarea,
.bs-body button {
    margin: 10px auto;
    display: block;
    text-align: center;
}

.bs-body label {
    width: 100%;
    max-width: 400px;
}

.bs-body select,
.bs-body input,
.bs-body textarea {
    width: calc(100% - 32px);
    max-width: 400px;
}

/* Botão REPORTAR com mesma largura dos inputs */
.bs-body button[type="submit"],
.bs-body .btn-reportar {
    margin: 10px auto;
    display: block;
    width: calc(100% - 32px);
    max-width: 400px;
    text-align: center;
}

/* No desktop, o bottom-sheet e overlay são ocultados */
@media (min-width: 769px) {
    .bottom-sheet,
    .bs-overlay {
        display: none !important;
    }
}

/* ==============================================
   BARRA DE NAVEGAÇÃO INFERIOR (Mobile Only)
   ============================================== */
.bottom-nav {
    display: none; /* visível só no mobile via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9998;
    height: 60px;

    /* Vidro fosco escuro */
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);

    /* Distribuição igualitária dos 4 botões */
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;

    /* Safe area do iPhone */
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Item da bottom nav */
.bnav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bnav-item:active {
    opacity: 0.7;
}

/* Ícone SVG */
.bnav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Label de texto */
.bnav-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Item ativo — destaque verde-neon */
.bnav-item.bnav-ativo {
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.bnav-item.bnav-ativo .bnav-icon {
    filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.7));
}

/* ================= AJUSTES MOBILE: ZOOM + LOCALIZADOR ================= */
/* Ocultar controles de zoom no mobile */
@media (max-width: 768px) {
    .leaflet-control-zoom {
        display: none !important;
    }
    /* Subir o localizador já que o zoom sumiu */
    .leaflet-control-localizar {
        top: 70px;
    }
}

/* ================= BOTTOM NAV — 3 BOTÕES CENTRALIZADOS ================= */
/* Sobrescreve justify-content para centralizar com gap */
@media (max-width: 768px) {
    .bottom-nav {
        justify-content: center;
        gap: 0;
    }
    /* Largura fixa por botão para distribuição uniforme */
    .bnav-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ==============================================
   PAINEL RELATOS (Mobile Full-screen)
   ============================================== */
.painel-relatos {
    /* Oculto por padrão */
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: #121212;
    flex-direction: column;
    overflow: hidden;
}

.painel-relatos.aberto {
    display: flex;
}

/* Cabeçalho fixo */
.pr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.18);
    background: #121212;
    flex-shrink: 0;
    /* Empurra abaixo do header do site */
    padding-top: calc(16px + env(safe-area-inset-top));
}

.pr-titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.pr-fechar {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.65);
    transition: background 0.2s;
}

.pr-fechar svg { width: 18px; height: 18px; }

.pr-fechar:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ff8080;
}

/* Lista com scroll suave */
.pr-lista {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom)); /* espaço para bottom nav */
}

/* Estado de carregamento */
.pr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    padding: 40px 0;
}

@keyframes pr-spin {
    to { transform: rotate(360deg); }
}
.pr-spin { animation: pr-spin 1s linear infinite; }

/* Card de relato */
.pr-card {
    background: #2a2a2d;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.18s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.pr-card:active {
    background: #333336;
    transform: scale(0.98);
}

/* Ícone da categoria */
.pr-card-icone {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

/* Conteúdo do card */
.pr-card-corpo {
    flex: 1;
    min-width: 0;
}

.pr-card-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-card-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé do card: tempo + apoios */
.pr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pr-card-tempo {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.pr-card-apoios {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #39ff14;
}

.pr-card-apoios i {
    font-size: 0.82rem;
}

/* Oculto no desktop */
@media (min-width: 769px) {
    .painel-relatos {
        display: none !important;
    }
}

/* ================= FAB REPORTAR (MOBILE ONLY) ================= */
.fab-reportar {
    display: none;              /* Oculto no desktop — aparece só via @media mobile */
    position: fixed;
    bottom: 90px;               /* acima da bottom-nav (60px + margem) */
    right: 22px;
    z-index: 1500;

    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;         /* ancora os filhos absolutamente posicionados */
    border: none;
    background: #39ff14;        /* Verde neon puro */
    cursor: pointer;

    /* Posicionamento relativo para os ícones filhos */
    align-items: center;
    justify-content: center;

    /* Box-shadow estático e simples para manter presença verde-neon sem processamento */
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4);

    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
}

/* Ícone + — grande, preto, centralizado */
.fab-reportar .fab-icon-plus {
    position: absolute;
    /* Deslocado ligeiramente para cima-esquerda para dar espaço à câmera */
    top: 50%;
    left: 50%;
    transform: translate(-58%, -58%);
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* Ícone câmera — menor, preto, canto inferior-direito */
.fab-reportar .fab-icon-cam {
    position: absolute;
    bottom: 9px;
    right: 9px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.fab-reportar:hover,
.fab-reportar:focus-visible {
    transform: scale(1.1);
    box-shadow:
        0 0 0 2px rgba(57, 255, 20, 0.7),
        0 0 22px 8px rgba(57, 255, 20, 0.9),
        0 0 50px 18px rgba(57, 255, 20, 0.6),
        0 0 90px 30px rgba(57, 255, 20, 0.3),
        0 4px 14px rgba(0, 0, 0, 0.45);
    outline: none;
}

.fab-reportar:active {
    transform: scale(0.93);
}

/* Oculta o FAB quando o bottom-sheet estiver aberto */
.fab-reportar.oculto {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
}

@media (max-width: 768px) {
    .fab-reportar {
        display: flex !important;
        position: fixed !important;
        bottom: 90px !important;        /* acima da bottom-nav (60px + 30px margem) */
        right: 20px !important;
        z-index: 9999 !important;
        transform-origin: center center;
    }
}

/* 2. A Gaveta Lateral (O Painel em si) */
#painel-usuario {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: #121212;
    color: #ffffff;
    border-left: 1px solid #1a1a1a;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

/* Estados de AnimaÃ§Ã£o */
.painel-fechado {
    transform: translateX(110%);
}

.painel-aberto {
    transform: translateX(0);
}

/* ================= CABEÃ‡ALHO HERO COM DEGRADÃŠ ================= */
.painel-header-hero {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    color: white;
    padding: 30px 25px;
    position: relative;
    border-radius: 0;
    margin: 0;
    flex-shrink: 0;
}

.btn-fechar-absoluto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-fechar-absoluto:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Perfil e Barra de XP */
.perfil-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-simple {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid #39ff14;
    flex-shrink: 0;
}



.perfil-dados small {
    font-size: 0.8rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.85);
}

/* ================= MINI STATS ================= */
.painel-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 25px;
    background: #121212;
    border-bottom: 1px solid #1a1a1a;
}

.mini-stat {
    background: #1a1a1a;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mini-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.15);
}

.mini-stat span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    margin-bottom: 4px;
    line-height: 1;
}

.mini-stat small {
    font-size: 0.7rem;
    color: #a0a0a0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ================= LISTA DE OCORRÃŠNCIAS ================= */
.lista-ocorrencias {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px 20px 25px;
}

.lista-ocorrencias h4 {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 0 10px 0;
    margin: 0 0 15px 0;
    z-index: 10;
}

/* Lista Timeline */
.lista-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loading-item {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-style: italic;
}

.item-timeline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.item-timeline:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.timeline-header small {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.75rem;
}

/* ================= BARRA DE STATUS VISUAL ================= */
.status-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 12px 0;
    padding: 0 10px;
}

/* Linha cinza de fundo */
.status-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    background: white;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

/* Passo Ativo (Azul) */
.step.active {
    border-color: #0ea5e9;
    background: #e0f2fe;
    color: #0ea5e9;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Passo ConcluÃ­do (Verde) */
.step.done {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
    transform: scale(1.1);
}

.timeline-status-text {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

/* ================= RODAPÃ‰ ================= */
.painel-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 25px;
    background: #f8fafc;
    flex-shrink: 0;
}

#painel-usuario .btn-logout {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #475569;
    border: 1px solid #475569;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#painel-usuario .btn-logout:hover {
    background: transparent;
    color: #ffffff;
    border-color: #475569;
}

/* ============================================================
   ðŸ“± OTIMIZAÃ‡Ã•ES MOBILE PARA PAINEL DO USUÃRIO
   ============================================================ */

@media (max-width: 768px) {

    /* 1. Painel em Tela Cheia */
    #painel-usuario {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        /* Dynamic viewport height (melhor para mobile) */
        top: 0;
        right: 0;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999;
        padding: 0;

        /* Suporte para safe areas (notch do iPhone) */
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Estado fechado (escondido Ã  direita) */
    #painel-usuario.painel-fechado {
        transform: translateX(100%) !important;
    }

    /* Estado aberto (visÃ­vel) */
    #painel-usuario.painel-aberto {
        transform: translateX(0) !important;
    }

    /* 2. CabeÃ§alho Hero - Ajustes para Mobile */
    .painel-header-hero {
        padding-top: max(50px, env(safe-area-inset-top, 20px));
        padding-bottom: 25px;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
        border-radius: 0 0 24px 24px;
    }

    /* 3. BotÃ£o Fechar - Touch Friendly */
    .btn-fechar-absoluto {
        top: max(15px, env(safe-area-inset-top, 10px));
        right: 15px;
        width: 44px;
        /* Tamanho mÃ­nimo recomendado para touch (44x44px) */
        height: 44px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
    }

    .btn-fechar-absoluto:active {
        transform: scale(0.95);
        background: rgba(0, 0, 0, 0.35);
    }

    /* 4. Avatar - Ajustes de Tamanho */
    .avatar-simple {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    /* 5. Texto do NÃ­vel */
    .perfil-dados h3 {
        font-size: 1.15rem;
    }

    .perfil-dados small {
        font-size: 0.75rem;
    }

    /* 6. Mini Stats - Otimizado para Mobile */
    .painel-stats-mini {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 18px 20px;
    }

    .mini-stat {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .mini-stat span {
        font-size: 1.5rem;
    }

    .mini-stat small {
        font-size: 0.65rem;
    }

    /* 8. Lista de OcorrÃªncias */
    .lista-ocorrencias {
        padding: 0 20px 100px 20px;
        /* EspaÃ§o extra embaixo */
    }

    .lista-ocorrencias h4 {
        padding: 12px 0 8px 0;
        font-size: 0.9rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }

    /* 9. Items da Timeline - Touch Friendly */
    .item-timeline {
        padding: 18px;
        margin-bottom: 14px;
        border-radius: 14px;
        /* Ãrea de toque maior */
        min-height: 100px;
    }

    .item-timeline:active {
        background: #f1f5f9;
        transform: scale(0.98);
    }

    .timeline-header {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    /* 10. Status Track - Ajustes para Mobile */
    .status-track {
        padding: 0 15px;
        margin: 14px 0;
    }

    .step {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step.active {
        transform: scale(1.2);
    }

    .timeline-status-text {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    /* 11. RodapÃ© - Fixo na Parte Inferior */
    .painel-footer {
        padding: 18px 20px;
        padding-bottom: max(18px, env(safe-area-inset-bottom, 18px));
        background: white;
        border-top: 2px solid #e2e8f0;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }

    #painel-usuario .btn-logout {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
        /* Touch feedback */
        -webkit-tap-highlight-color: transparent;
    }

    #painel-usuario .btn-logout:active {
        transform: scale(0.98);
        background-color: #cbd5e1;
    }

    /* 12. BotÃ£o Flutuante "Minha Conta" */
    .fab-perfil {
        bottom: 20px;
        right: 20px;
        top: auto;
        padding: 14px 26px;
        font-size: 0.95rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    /* 13. Scrollbar Customizada (Webkit) */
    #painel-usuario::-webkit-scrollbar {
        width: 6px;
    }

    #painel-usuario::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    #painel-usuario::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    /* 14. Loading Item */
    .loading-item {
        padding: 40px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   ðŸ“± EXTRA: Ajustes para Telas Muito Pequenas (< 375px)
   ============================================================ */

@media (max-width: 374px) {
    .painel-header-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .perfil-flex {
        gap: 12px;
    }

    .avatar-simple {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .perfil-dados h3 {
        font-size: 1rem;
    }

    .mini-stat span {
        font-size: 1.3rem;
    }

    .lista-ocorrencias {
        padding: 0 15px 100px 15px;
    }
}

/* =========================================
   NOVO PAINEL ADMINISTRATIVO
   ========================================= */

/* 2. A Janela Branca (ConteÃºdo) */
.modal-conteudo-admin {
    background: #121212;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

/* Sobrescrever .modal-box para o painel admin */
.modal-box.admin-box {
    max-width: 1400px !important;
    width: 90%;
    height: 85vh;
    border: 1px solid #39ff14;
}

/* CabeÃ§alho do Modal (TÃ­tulo na esquerda, BotÃ£o na direita) */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #39ff14;
    width: 100%;
    background-color: #121212;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b0b0b0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: #39ff14;
    background: rgba(57, 255, 20, 0.1);
    text-shadow: 0 0 8px #39ff14;
}

.admin-tab-btn.active {
    color: #39ff14;
    border-bottom-color: #39ff14;
    text-shadow: 0 0 10px #39ff14;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Mobile: Tabs menores */
@media (max-width: 768px) {
    .admin-tabs {
        gap: 5px;
        margin-bottom: 15px;
    }

    .admin-tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
}

/* BotÃ£o de Fechar (X) mais bonito */
.btn-fechar-x {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fechar-x:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* Barra de Filtros do Admin */
.admin-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid #2a2a2a;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b0b0b0;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #39ff14;
    border-radius: 6px;
    background: #121212;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.filter-group select:hover {
    border-color: #39ff14;
    box-shadow: 0 0 5px #39ff14;
}

.filter-group select:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2);
}

.filter-stats {
    margin-left: auto;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 600;
}

.filter-stats span {
    color: #39ff14;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #39ff14;
}

.admin-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Corpo da Tabela com Rolagem */
.admin-body {
    flex: 1;
    /* Ocupa todo o espaÃ§o restante */
    overflow-y: auto;
    /* Barra de rolagem interna */
    padding: 0;
    background-color: #121212;
}

/* 3. A Tabela de Dados */
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    /* Garante que nÃ£o quebre em telas mÃ©dias */
}

.tabela-admin thead th {
    background: #1a1a1a;
    color: #39ff14;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px 20px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #39ff14;
}

.tabela-admin tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    color: #ffffff;
    vertical-align: middle;
}

.tabela-admin tbody tr {
    background-color: #121212;
}

.tabela-admin tbody tr:nth-child(even) {
    background-color: #1a1a1a;
}

.tabela-admin tbody tr:hover {
    background-color: rgba(57, 255, 20, 0.1);
    /* Efeito hover na linha */
}

/* Miniatura da Foto */
.thumb-admin {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    position: relative;
    z-index: 1;
}

.thumb-admin:hover {
    transform: scale(2.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    position: relative;
}

/* BotÃµes de AÃ§Ã£o na Tabela */
.btn-acao-admin {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-ver {
    background: transparent;
    color: #39ff14;
    border: 1px solid #39ff14;
}

.btn-ver:hover {
    background: #39ff14;
    color: #121212;
    box-shadow: 0 0 10px #39ff14;
}

.btn-banir {
    background: #1a1a1a;
    color: #ff1744;
    border: 1px solid #ff1744;
}

.btn-banir:hover {
    background: #ff1744;
    color: #121212;
    box-shadow: 0 0 10px #ff1744;
}

/* 4. BotÃ£o Flutuante Dourado (SÃ³ aparece se for Admin) */
.fab-admin {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #1e293b;
    /* Azul bem escuro */
    color: #fbbf24;
    /* Dourado */
    border: 2px solid #fbbf24;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: none;
    /* O JavaScript vai mostrar isso */
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    justify-content: center;
}

.fab-admin:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
    /* Brilho dourado */
    background: #0f172a;
}

/* ================= BOTÃƒO FECHAR MODAL ================= */
.btn-fechar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    background-color: transparent;
    color: #64748b;
    /* Slate 500 */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fechar:hover {
    background-color: #f8fafc;
    /* Slate 50 */
    color: #334155;
    /* Slate 700 */
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-fechar:active {
    transform: translateY(0);
}

/* ==========================================
   OCULTAR BOTÕES DE LOGIN REDUNDANTES (DESKTOP)
   ========================================== */












/* ==========================================
   OCULTAR BOTÃO MOBILE DE LOGIN NO DESKTOP
   ========================================== */

@media (min-width: 769px) {
    #btn-login-mobile {
        display: none !important;
    }
}

/* Botão de Denunciar (Design Limpo) */
.btn-denunciar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #e0e0e0;
    /* Borda suave para não poluir */
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-denunciar i {
    color: #ff4d4d;
    /* Cor apenas no ícone para sinalizar alerta */
}

.btn-denunciar:hover {
    background-color: #fff5f5;
    border-color: #ff4d4d;
    color: #ff4d4d;
}

/* Botão de Excluir (Destaque para o dono) */
.btn-excluir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-excluir:hover {
    background: #fecaca;
    transform: translateY(-1px);
}


/* ==========================================
   POPUP INTERATIVO - SISTEMA DE OCORRÊNCIAS
   ========================================== */

/* Container do Popup */
.popup-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 280px;
    padding: 0;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.status-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge.pendente {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.aprovado_ia {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.solucionado {
    background: #dcfce7;
    color: #16a34a;
}

.post-date {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.popup-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.popup-img:hover {
    transform: scale(1.02);
}

.popup-desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 10px 0;
}

/* Rodapé de Ações */
.popup-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0 10px 0;
}

.btn-apoiar {
    flex-grow: 1;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-apoiar:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-apoiar:active {
    transform: translateY(0);
}

.btn-apoiar:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.badge-resolvido {
    flex-grow: 1;
    color: #16a34a;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 8px;
}

.acoes-secundarias {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: #f3f4f6;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.btn-icon:hover {
    background: #e5e7eb;
}

.btn-icon.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon.report:hover {
    background: #fef3c7;
    color: #f59e0b;
}

.btn-comentarios {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-comentarios:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.apoio-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}


/* ========================================== */
/* MODAL DE COMENTÁRIOS */
/* ========================================== */
.modal-comentarios {
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.comentarios-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.lista-comentarios {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    max-height: 400px;
}

.comentario-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comentario-autor {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.comentario-data {
    font-size: 0.75rem;
    color: #94a3b8;
}

.comentario-texto {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.comentario-vazio {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.comentario-vazio i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.comentario-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.comentario-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.comentario-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.form-footer small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.btn-enviar-comentario {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-enviar-comentario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-enviar-comentario:active {
    transform: translateY(0);
}



/* ========================================== */
/* MODAL DE COMENTÁRIOS - NOVO DESIGN */
/* ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 15000;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Melhoria para Desktop (Lateral Direita) */
@media (min-width: 768px) {
    .modal-content {

        height: 90vh;
        max-height: 90vh;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.comment-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    animation: slideIn 0.3s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item strong {
    color: #1e293b;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.comment-item small {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 5px;
}

.comment-item p {
    margin: 5px 0 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.comentario-vazio {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.comentario-vazio i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.comentario-vazio p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.comment-input-area {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.comment-input-area textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.comment-input-area textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.input-footer small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn i {
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizada */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================
   20. BOTÕES DE COMPARTILHAMENTO (NOVO 2025)
   ========================================== */
.share-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
}

.share-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    /* Alinhado a esquerda para não esticar */
}

.btn-share-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    background-color: #e2e8f0;
    /* Default fallback */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-share-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-share-icon:active {
    transform: scale(0.95);
}

/* Cores das Redes */
.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #22c35e;
}

.btn-facebook {
    background: #1877F2;
}

.btn-facebook:hover {
    background: #166fe5;
}

.btn-instagram {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
    opacity: 0.9;
}

.btn-link {
    background: #64748B;
}

.btn-link:hover {
    background: #475569;
}

/* ==========================================
   21. TABS DO PAINEL DE USUÁRIO
   ========================================== */
.painel-tabs {
    display: flex;
    gap: 8px;
    padding: 15px 20px 0;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #334155;
    background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeInTab 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para lista dentro das tabs */
.tab-content .lista-timeline {
    margin: 0;
    padding: 0;
}

/* ==========================================
   PÁGINA DE TRANSPARÊNCIA
   ========================================== */

/* Body específico da página */
.transparencia-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

/* Container principal */
.transparencia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 70px);
}

/* Cabeçalho do Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Cards de Estatísticas */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-blue);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    font-size: 1rem;
    color: var(--text-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Seção de Gráficos */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Container de Gráfico */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-3px);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper canvas {
    max-height: 100%;
}

/* Footer de Ações */
.action-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-download:active {
    transform: translateY(-1px);
}

.last-update {
    margin-top: 20px;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.last-update time {
    font-weight: 600;
}

/* ==========================================
   RESPONSIVIDADE - TRANSPARÊNCIA
   ========================================== */

@media (max-width: 768px) {
    .transparencia-container {
        padding: 20px 15px;
    }

    .dashboard-header h2 {
        font-size: 1.8rem;
    }

    .dashboard-header p {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 20px;
    }

    .chart-wrapper {
        height: 250px;
    }

    .btn-download {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .chart-container h3 {
        font-size: 1.1rem;
    }

    .chart-wrapper {
        height: 220px;
    }
}

/* ==========================================
   MODAL DE AVISO DE OTIMIZA��O
   ========================================== */
.modal-aviso-box {
    max-width: 500px; /* Alargando a janela */
    width: 90%;
    height: auto !important; /* Fix desproporção importada de .modal-content */
    min-height: auto !important;
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    
    /* Midnight Glassmorphism */
    background: rgba(18, 20, 26, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(163, 255, 0, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.aviso-icone {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.aviso-titulo {
    color: #a3ff00; /* Neon green */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ====================================================
   MODAL PWA MOBILE - Bottom Sheet Neon
==================================================== */
.modal-pwa-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
}

.modal-pwa-mobile.ativo {
    display: flex;
}

.pwa-sheet {
    background: #121212;
    border-top: 3px solid #39ff14;
    border-radius: 20px 20px 0 0;
    padding: 30px 20px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -4px 20px rgba(57, 255, 20, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-titulo {
    color: #39ff14;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.pwa-acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-btn-adicionar {
    background: #39ff14;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwa-btn-adicionar:hover {
    background: #2ecc11;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.pwa-btn-agora-nao {
    background: transparent;
    color: #888;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.pwa-btn-agora-nao:hover {
    color: #aaa;
}

.aviso-texto {
    color: #e2e8f0; /* Soft white */
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.aviso-link {
    color: #39ff14;
    font-weight: 600;
    text-decoration: underline;
}

.aviso-link:hover {
    color: #a3ff00;
}

.btn-aviso-entendi {
    background-color: #a3ff00; /* Neon green */
    color: #0b1a00;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 15px rgba(163, 255, 0, 0.3);
}

.btn-aviso-entendi:hover {
    background-color: #8ce600;
    transform: translateY(-2px);
}

.btn-aviso-entendi:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .modal-aviso-box {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .aviso-titulo {
        font-size: 1.4rem;
    }
    
    .aviso-texto {
        font-size: 0.95rem;
    }
    
    .btn-aviso-entendi {
        padding: 12px 20px;
    }
}

/* ==========================================
   BOTTOM SHEET — Nova Ocorrência (Mobile)
   Ativado apenas em telas ≤ 768px
   ========================================== */
@media (max-width: 768px) {
    .bs-overlay {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10001;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .bs-overlay.ativo {
        display: block;
        opacity: 1;
    }

    .bs-content {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh; /* Ocupa 85% da tela mobile */
        border-radius: 24px 24px 0 0;
        z-index: 10002;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        
        /* Dark Glassmorphism */
        background: rgba(18, 20, 26, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(57, 255, 110, 0.3);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        color: #f1f5f9;
    }

    .bs-content.ativo {
        transform: translateY(0);
    }

    /* Puxador (Drag Handle) */
    .bs-handle {
        width: 100%;
        height: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: grab;
        padding-top: 8px;
    }
    
    .bs-handle::after {
        content: '';
        width: 48px;
        height: 5px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
    }

    /* Header e Título */
    .bs-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bs-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
    }

    .bs-header .neon-pin-icon {
        color: #fe346e;
        font-size: 1.2rem;
        filter: drop-shadow(0 0 6px rgba(254, 52, 110, 0.6));
    }

    .bs-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    .bs-close:active {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Corpo com scroll — aqui fica o formulário */
    .bs-body {
        padding: 24px 20px;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Labels do form */
    .bs-field {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bs-field label {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #a3ff00;
    }

    /* Inputs e Selects */
    .bs-field select, .bs-field textarea {
        width: 100%;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        padding: 14px;
        border-radius: 12px;
        font-family: inherit;
        outline: none;
        transition: border 0.2s, box-shadow 0.2s;
    }

    .bs-field select:focus, .bs-field textarea:focus {
        border-color: #39FF6E;
        box-shadow: 0 0 0 3px rgba(57, 255, 110, 0.15);
    }

    .bs-field select option {
        background: #1e1e1e;
        color: white;
    }

    /* Área de Upload */
    .bs-field .upload-area {
        border: 1px dashed rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        padding: 24px 16px;
        text-align: center;
        color: #e2e8f0;
        font-size: 0.95rem;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.2s;
        font-weight: 600;
    }

    .bs-field .upload-area:active {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Botão Salvar Mobile Gaveta */
    .bs-btn-reportar {
        margin-top: auto;
        width: 100%;
        padding: 16px;
        background: #a3ff00;
        color: #0b1a00;
        font-weight: 800;
        font-size: 1.1rem;
        border: none;
        border-radius: 14px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 16px rgba(163, 255, 0, 0.3);
        transition: transform 0.2s;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: env(safe-area-inset-bottom);
    }

    .bs-btn-reportar:active {
        transform: scale(0.96);
        background: #8ce600;
    }
}

/* ================= MODAL SOBRE - MIDNIGHT NEON ================= */
.modal-sobre-midnight {
    background: #121212 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #39ff14 !important;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3), 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

.modal-sobre-midnight h2,
.modal-sobre-midnight h3 {
    color: #39ff14 !important;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.modal-sobre-midnight p,
.modal-sobre-midnight span,
.modal-sobre-midnight li {
    color: #ffffff !important;
}

.btn-fechar-midnight {
    width: 100%;
    padding: 12px 24px;
    background: transparent !important;
    color: #39ff14 !important;
    border: 2px solid #39ff14 !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-fechar-midnight:hover {
    background: rgba(57, 255, 20, 0.1) !important;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transform: translateY(-2px);
}

.btn-fechar-midnight:active {
    transform: translateY(0);
}