/* Navigation Dropdown Styles */

/* Ensure proper alignment with other nav items */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Fallback for when Alpine.js is not available */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure nav-link inside dropdown maintains alignment */
.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    z-index: 50;
    margin-top: 0.5rem;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease-in-out;
}

.nav-dropdown-menu a:hover {
    background-color: #f3f4f6;
}

.nav-dropdown-menu a.active {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 500;
}

/* Enhanced dropdown arrow animation */
.nav-dropdown-arrow {
    transition: transform 0.2s ease-in-out;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .nav-dropdown-menu a {
        padding-left: 2rem;
        color: #6b7280;
    }
    
    .nav-dropdown-menu a:hover {
        background-color: transparent;
        color: #374151;
    }
}

/* Focus styles for accessibility */
.nav-dropdown button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.nav-dropdown-menu a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-dropdown-menu {
        border: 2px solid #000;
    }
    
    .nav-dropdown-menu a:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-dropdown-menu,
    .nav-dropdown-arrow {
        transition: none;
    }
} 