/* Header Responsive Styles */

/* Ajustes para menu hambúrguer em tablets e móveis */
@media (max-width: 1199.98px) {
    .header-nav-main .collapse {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        padding: 15px 0;
        border: 1px solid #e9ecef;
    }

    .header-nav-main .collapse .nav-pills {
        flex-direction: column;
        width: 100%;
    }

    .header-nav-main .collapse .nav-pills > li {
        width: 100%;
        margin-bottom: 5px;
    }

    .header-nav-main .collapse .dropdown-item {
        padding: 10px 20px;
        border-bottom: 1px solid #f8f9fa;
        color: #495057;
        font-weight: 500;
    }

    .header-nav-main .collapse .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    .header-nav-main .collapse .dropdown-item i {
        color: #007bff;
        width: 20px;
    }

    /* Estilo especial para links de transparência no menu móvel */
    .header-nav-main .collapse .dropdown-item[href*="transparencia"],
    .header-nav-main .collapse .dropdown-item[href*="dados-abertos"],
    .header-nav-main .collapse .dropdown-item[href*="sinceti"] {
        background-color: #f8f9fa;
        font-weight: 600;
        border-left: 4px solid #007bff;
    }

    /* Botão hambúrguer */
    .header-btn-collapse-nav {
        background: transparent;
        border: 2px solid #007bff;
        color: #007bff;
        padding: 8px 12px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .header-btn-collapse-nav:hover {
        background: #007bff;
        color: #fff;
    }

    .header-btn-collapse-nav i {
        font-size: 18px;
    }
}

/* Ajustes específicos para tablets (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .header-nav-main .collapse {
        position: absolute;
        right: 0;
        top: 100%;
        min-width: 300px;
        z-index: 1000;
    }
}

/* Ajustes para móveis menores */
@media (max-width: 767.98px) {
    .header-nav-main .collapse {
        width: 100%;
        left: 0;
        right: 0;
        margin-top: 15px;
    }
    
    .header-btn-collapse-nav {
        margin-top: 5px;
    }
}

/* Garantir que dropdowns funcionem corretamente */
@media (min-width: 1200px) {
    .header-nav-main .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .header-nav-main .dropdown-menu {
        margin-top: 0;
    }
}

/* Estilos personalizados para tooltips */
.tooltip {
    font-size: 13px;
}

.tooltip .tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    line-height: 1.4;
}

.tooltip .tooltip-arrow {
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

/* Efeito hover nas imagens com tooltips */
.nav-pills li a[data-bs-toggle="tooltip"]:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.nav-pills li a[data-bs-toggle="tooltip"] img {
    transition: transform 0.2s ease;
}