/* Unified Dropdown Menu Styling */

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

/* Dropdown toggle button */
.dropdown-toggle {
    display: inline-block;
    color: var(--primary-color, #ff7a00);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 15px;
    position: relative;
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    border-radius: 6px;
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    outline: none;
}

/* Dropdown toggle icon */
.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Rotate icon when dropdown is active or hovered */
.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Hover state for dropdown toggle */
.dropdown:hover .dropdown-toggle {
    color: var(--primary-hover, #e56e00);
    background-color: rgba(255, 122, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: none;
    outline: none;
}

/* Active state for dropdown toggle */
.dropdown.active .dropdown-toggle {
    background-color: rgba(255, 122, 0, 0.1);
    box-shadow: none;
    position: relative;
    z-index: 2001;
    border-radius: 6px;
    outline: none;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 2000;
    display: none;
}

/* Show dropdown menu when active */
.dropdown.active .dropdown-menu {
    display: block !important;
}

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

/* Last dropdown item (no border) */
.dropdown-item:last-child {
    border-bottom: none;
}

/* Hover effect for dropdown items */
.dropdown-item:hover {
    background-color: rgba(255, 122, 0, 0.1);
    color: var(--primary-color, #ff7a00);
    padding-left: 25px;
}

/* Active state for dropdown items */
.dropdown-item:active {
    background-color: rgba(255, 122, 0, 0.2);
    transform: scale(0.98);
}

/* Mobile styles */
@media (max-width: 992px) {
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 5px;
        background-color: rgba(0, 0, 0, 0.03);
        margin-top: 10px;
        transform: none;
    }
    
    .dropdown-item {
        padding: 15px 20px;
    }
}
