/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Default dark navbar con fundido */
.navbar.bg-dark {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 70%, rgba(52, 58, 64, 0.95) 85%, rgba(52, 58, 64, 0.8) 95%, rgba(52, 58, 64, 0.4) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* White navbar override */
.navbar.bg-white {
    background-color: white !important;
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

.navbar-nav .nav-link {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
}

/* Professional Dropdown Menu Styling */
.dropdown-menu {
    z-index: 1031;
    border: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15),
                0 5px 15px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 12px 8px;
    margin-top: 8px;
    min-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 12px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0 12px 12px 0;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: -1;
}

.dropdown-item:hover {
    background: transparent;
    color: white;
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover::after {
    opacity: 1;
}

.dropdown-item:active {
    transform: translateX(6px) translateY(-1px);
}

/* Professional dropdown dividers */
.dropdown-divider {
    height: 1px;
    margin: 8px 12px;
    background: linear-gradient(90deg, transparent, rgba(111, 66, 193, 0.2), transparent);
    border: 0;
    opacity: 1;
}

/* Subtle animation on dropdown open */
.nav-item.dropdown:hover .dropdown-menu {
    animation: dropdownFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced dropdown arrow indicator */
.nav-item.dropdown > .nav-link::after {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
}
