/* Apple-style Header */
.navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    padding: 0 20px !important;
    height: 52px !important;
    position: fixed !important;
    width: 100%;
    top: 0;
    z-index: 9999;
}

.navbar-brand {
    padding: 0 !important;
    margin-right: 2rem !important;
    display: flex;
    align-items: center;
}

.custom-navlink {
    font-size: 13px !important;
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 500 !important;
    padding: 0 20px !important;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    height: 52px;
}

.custom-navlink:hover {
    color: var(--accent-blue) !important;
    opacity: 1;
}

/* Dropdown */
.custom-dropdown .dropdown-toggle {
    background: transparent !important;
    border: none;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
    opacity: 0.8;
    padding: 0 12px;
}

.custom-dropdown .dropdown-toggle::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    border: solid rgba(0,0,0,0.5);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 2px;
    content: '';
    vertical-align: middle;
    border-top: none;
    border-right: 1.5px solid rgba(0,0,0,0.5); /* Explicit override */
    border-left: none;
}

.custom-dropdown .dropdown-menu {
    background-color: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 16px;
    margin-top: 12px;
    padding: 10px;
    min-width: 240px;
}

.dropdown-item {
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #1d1d1f;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #0071e3;
    color: white !important;
}

.dropdown-item:hover svg {
    color: white !important;
}

/* Mobile Menu Toggle - Premium Apple Style */
.toggle-icon {
    width: 26px;
    height: 18px; /* Altura total do ícone */
    position: relative;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 1060;
}

.toggle-icon:focus {
    box-shadow: none !important;
    outline: none !important;
}

.toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1d1d1f;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    opacity: 1;
}

/* 3 Lines Positioning */
.toggle-icon span:nth-child(1) {
    top: 0;
}

.toggle-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.toggle-icon span:nth-child(3) {
    bottom: 0;
}

/* Active State (X Animation) */
.toggle-icon.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.toggle-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.toggle-icon.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Logo Adjustments */
.navbar-brand img {
    height: 32px;
    width: auto !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        padding: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
}




.dropdown-wrapper {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    z-index: 1051;
}

.dropdown-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-wrapper.hidden {
    display: block; /* mantém no fluxo, mas invisível */
}
