* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0f19; 
}

/* --- VÉUS NEON DE FUNDO --- */
.veil {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.6; 
}
.veil-1 { width: 60vw; height: 60vh; background: #00ff88; top: -10%; left: -10%; animation: float1 14s infinite alternate; }
.veil-2 { width: 75vw; height: 75vh; background: #6f42c1; bottom: -15%; right: -10%; animation: float2 18s infinite alternate; }
.veil-3 { width: 55vw; height: 55vh; background: #d63384; top: 30%; left: 20%; animation: float3 22s infinite alternate; }

@keyframes float1 { 0% { transform: translate(0, 0); } 100% { transform: translate(10vw, 10vh); } }
@keyframes float2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-10vw, -10vh); } }
@keyframes float3 { 0% { transform: translate(0, 0); } 100% { transform: translate(15vw, -5vh); } }

/* --- CANVAS DO MAPA DASHBOARD EM 100% --- */
#mapa-painel {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0; left: 0;
    z-index: 1; 
    background-color: transparent;
}

/* --- SIDEBAR CONSOLIDADA (Tudo em um único bloco na esquerda) --- */
.painel-sidebar {
    position: absolute;
    top: 30px; 
    bottom: 30px; 
    left: 40px;
    width: 380px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* Header interno da Sidebar (Logos e Título) */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.sidebar-header .logo-evento {
    width: 220px;
    height: auto;
    margin-bottom: 15px;
}

.sidebar-header h2 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Botões de Ordenação (Toggle Ranking / A-Z) */
.sort-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px; 
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sort-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 11px; 
    font-weight: 700;
    padding: 8px 0; 
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-btn.active {
    background: #00ff88;
    color: #0f172a;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* 🟢 Lista Dinâmica customizada para ARRASTO (Drag to Scroll) */
.lista-cidades {
    list-style: none;
    overflow-y: auto; 
    flex: 1;
    padding-right: 15px; 
    
    /* Configurações essenciais para clique e arrasto perfeitos */
    user-select: none; /* Impede o texto de ficar azul ao arrastar */
    -webkit-user-select: none;
    cursor: grab; /* Mãozinha aberta */
}

/* Mãozinha fechada quando o usuário clica e segura */
.lista-cidades:active {
    cursor: grabbing; 
}

/* Barra de rolagem mantida mas não será mais a única forma de rolar */
.lista-cidades::-webkit-scrollbar { width: 8px; }
.lista-cidades::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.lista-cidades::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.6); border-radius: 10px; }
.lista-cidades::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 136, 0.9); }

.lista-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.lista-item .nome {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 220px;
}

.lista-item .numero {
    color: #0f172a;
    background: #00ff88;
    font-size: 16px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Rodapé interno da Sidebar (Sebrae) */
.sidebar-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer img {
    height: 35px;
    width: auto;
    opacity: 0.8;
}

/* --- BADGES DOS NÚMEROS FLUTUANTES NO MAPA --- */
.contador-mun-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    padding: 0 !important;
}

.mun-total {
    color: #00ff88;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 0 8px #00ff88, 0 0 15px #00ff88, 0 0 30px #00ff88, 1px 1px 3px #000;
}