/* Responsive Dropdown Styles */

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown toggle button */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    outline: none !important;
    border: none !important;
}

.dropdown-toggle:hover,
.dropdown.active .dropdown-toggle {
    background-color: rgba(255, 122, 0, 0.1);
    outline: none !important;
    border: none !important;
}

/* Rotate arrow when dropdown is active */
.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(255, 122, 0, 0.1);
    color: var(--primary-color);
}

/* Mobile styles */
@media (max-width: 992px) {
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 4px;
        background-color: rgba(255, 122, 0, 0.05);
        margin-top: 8px;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
}
