/* =========================
   Handler para recolher o painel lateral
   ========================= */
.aside-handler {
    position: absolute;
    left: 300px;
    top: 50%;
    transform: translateY(-50%);    
    height: 64px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;    
    cursor: pointer;
    z-index: 1200;
    color: #3a4a5d;
    transition: width 0.1s cubic-bezier(.4,0,.2,1);
}
/* Estado recolhido */
.aside-collapsed aside {
    width: 0;
    overflow: hidden;
    transition: width 0.1s cubic-bezier(.4,0,.2,1);
}
.aside-collapsed .aside-handler {
    left: 0;
    transition: left 0.1s cubic-bezier(.4,0,.2,1);
}
.aside-collapsed .aside-handler-icon {
    transform: scaleX(-1);    
}
.aside-collapsed .leaflet-control-zoom {
    left: 0; 
    transition: left 0.1s cubic-bezier(.4,0,.2,1);
}
.leaflet-left .leaflet-control {
    margin-left: 12px;
}
@media (min-width: 768px) { 
    .leaflet-left .leaflet-control {
        margin-left: 24px;
    }
}

/* =========================
   Tooltips e ícones
   ========================= */
[title] {
    position: relative;
    cursor: help;
}

.indicadores_info svg {
    stroke: #acaeb3;
    stroke-width: 1.75;
    transition: stroke 0.2s;
}

.indicadores_info:hover svg {
    stroke: #2f3540;
}

.outros_indicadores {
    stroke: var(--sisam-icon-color);
}

/* =========================
   Chat e botões flutuantes
   ========================= */
.chat, .chat-button {  
    left: 300px;  
    transition: left 0.1s cubic-bezier(.4,0,.2,1);
}
.aside-collapsed .chat, .aside-collapsed .chat-button {  
    left: 0;  
    transition: left 0.1s cubic-bezier(.4,0,.2,1);
}

/* =========================
   Filtro de regiões/mapa
   ========================= */
.filter-container {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;    
}

.filter-select {
    font-family: var(--font-family-sans-serif);
    padding: 12px 16px 12px 12px;
    padding-right: 36px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;    
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Correção para IE 10+ */
.filter-select::-ms-expand {
    display: none;
}

/* Hover state */
.filter-select:hover {
    border-color: #999;
}

/* =========================
   Legenda do mapa
   ========================= */
.legend-table {    
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    background-color: #fff; 
    border-radius: 8px;   
    padding: 4px;
}

.legend-table th,
.legend-table td {        
    border: none;
    padding: 4px;    
}

.info h4, .legend-table th {
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--sisam-icon-color);
}

/* Alinhamento específico para cada coluna da legend-table */
.legend-table th:nth-child(1),
.legend-table td:nth-child(1) {
    text-align: center;
}

.legend-table th:nth-child(2),
.legend-table td:nth-child(2) {
    text-align: left;
    padding-right: 12px;
}

.legend-table th:nth-child(3),
.legend-table td:nth-child(3) {
    text-align: right;
}

/* =========================
   Círculo colorido da legenda
   ========================= */
.color-box {    
    width: var(--font-size-lg);
    height: var(--font-size-lg);    
    display: inline-block;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;    
}

/* =========================
   Popups e tooltips customizados
   ========================= */
.popUpText {
    text-align: center;
}

.custom-tooltip {
    /* 
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    */
}

/* =========================
   Informações do mapa
========================= */
.info {
    display: none;
}
@media (min-width: 768px) {    
    .info {    
        display: block;
        padding: 12px;
        font-family: var(--font-family-sans-serif);
        font-size: var(--font-size-base);        
        background: white;
        border-radius: 8px;     
    }

    .info h4 {    
        margin: 0 0 5px;
    }
}

/* =========================
   Layout do mapa e containers
   ========================= */
#map {
    position: relative;
    flex: 1;    
}

aside {
    position: absolute;
    z-index: 1200;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0px;
    width: 300px;
    height: 100%;
    transition: width 0.1s cubic-bezier(.4,0,.2,1);
}

.map-content {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 300px;
}

.leaflet-control-zoom {
    position: absolute;
    left: 300px;
    transition: left 0.1s cubic-bezier(.4,0,.2,1);
}

.leaflet-right .leaflet-control {
    margin-right: 24px;
}

/* =========================
   Containers principais
   ========================= */
.main-container,
.data-table-container,
.header-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

/* =========================
   Responsividade
   ========================= */
@media screen and (max-width: 768px) {
    .title {
        font-size: 20px;
    }

    .legend-table {
        font-size: 12px;
        padding: 0;
    }

    .legend-table th,
    .legend-table td {
        padding: 2px;
    }
}

/* =========================
   Fim do arquivo
   ========================= */