/* Custom styles for Inter font */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    /* Light background */
    color: #343a40;
    /* Dark gray text */
}

/* Styling for dropdown menus */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 0.5rem;
    /* Rounded corners */
    overflow: hidden;
    /* Ensures rounded corners apply to children */
    top: 100%;
    /* Position below the parent link */
    left: 0;
    transform: translateY(0.5rem);
    /* Small gap below the parent */
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    pointer-events: none;
    /* Allows clicks through when hidden */
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    /* 'active' class for mobile toggle */
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* Enables clicks when visible */
}

.dropdown-menu a {
    color: #343a40;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: #e2e8f0;
    /* Tailwind gray-200 */
}

/* Mobile menu specific styles */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Search bar dropdown styles */
#search-dropdown {
    position: absolute;
    top: 100%;
    /* Below the header */
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 90;
    padding: 1rem;
    display: none;
    /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#search-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
