/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px); /* Increased space between option and dropdown */
    left: 0;
    background: white;
    min-width: 220px; /* Increased width */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg); /* Icon rotates down on hover */
}

.dropdown-menu a {
    display: block;
    padding: 14px 22px; /* Slightly increased padding for better spacing */
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 26px; /* Slight indent on hover for better UX */
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

/* Smooth animation for dropdown arrow */
.nav-dropdown .dropdown-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional styling for better visual hierarchy */
.dropdown-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .dropdown-menu {
        min-width: 200px;
        left: -50px;
    }
    
    .dropdown-menu a {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}
