/* Estilos para o Layout Customizado (Mapa Fullscreen e Painéis Flutuantes) */

/* Container Principal do Mapa para ocupar a tela */
.map-container-full {
    position: relative;
    width: 100%;
    /* Altura: 100% da viewport menos o espaço aproximado do header (ajuste se tiver header fixo) */
    height: calc(80vh);
    overflow: hidden;
    border-radius: 8px;
    /* Cantos arredondados suaves */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ajuste e override do mapa DL para preencher o container */
#ui_dash_hbc_mapa_generico_map {
    width: 100% !important;
    height: 100% !important;
}

/* Painéis Retráteis Flutuantes (Glassmorphism + Sombra) */
.floating-panel {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    /* Quase opaco para legibilidade */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    /* Acima do mapa */
    display: flex;
    flex-direction: column;
}

/* Botões de Toggle Flutuantes (Estilo "Pílula" ou Círculo) */
.floating-toggle-btn {
    z-index: 1001;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transition: transform 0.2s;
    border: none;
}

.floating-toggle-btn:hover {
    transform: scale(1.05);
}

/* Scrollbar Bonita para as listas */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
}

/* Estilo para Legend Item */
.legend-item {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.legend-item:last-child {
    border-bottom: none;
}

/* Estilo para Active Layer Item */
.active-layer-item {
    background-color: #f8f9fa;
    border-left: 4px solid #33C3F0;
    /* Cor primária do tema */
    margin-bottom: 4px;
    border-radius: 4px;
    padding: 8px;
    transition: background 0.2s;
}

.active-layer-item:hover {
    background-color: #eee;
}

/* Sidebar fix to allow bottom footer */
#sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-bg, #1a1a1a); /* Fallback */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s;
}

.nav-link-custom:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
    color: #fff !important;
    background-color: rgba(20, 199, 199, 0.2) !important;
    border-left: 3px solid #14c7c7;
}

/* Animations for hover */
.hover-opacity-100:hover {
    opacity: 1 !important;
}