/* Catalogue Styles - Modernized Filters (Blue) with Single Line Items */

/* Filter Dropdowns */
.dropdown-menu {
    background-color: var(--navbar-sec-bg-color);
    /* Keep the Blue */
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-top: 10px !important;
}

.dropdown-item {
    color: var(--white-color);
    border-radius: 10px;
    margin-bottom: 2px;
    /* Tighter spacing */
    transition: all 0.2s ease;
    padding: 8px 12px;

    /* CRITICAL: Ensure single line alignment */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.dropdown-item label {
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    width: auto;
    /* Allow label to just take necessary space */
    flex-grow: 1;
}

.dropdown-item:hover,
.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white-color);
}

/* Custom Checkbox - One line style */
.dropdown-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    /* Slightly smaller for better line fit */
    height: 18px;
    border: 2px solid var(--white-color);
    border-radius: 4px;
    background: transparent;
    margin-right: 12px;
    /* Space between box and text */
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.dropdown-item input[type="checkbox"]:checked {
    background-color: var(--white-color);
    border-color: var(--white-color);
}

.dropdown-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid var(--navbar-sec-bg-color);
    /* Blue checkmark */
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    display: block;
}

/* Dropdown Toggle styling */
.nav-link.dropdown-toggle {
    font-weight: 600;
    padding: 10px 20px;
    transition: color 0.2s;
}

.nav-link.dropdown-toggle:hover {
    color: var(--primary-color);
}