/* 
 * PROFESSIONAL HORIZONTAL FILTER LAYOUT
 * Makes filter dropdowns display in a horizontal row instead of vertical column
 */

/* Filter area container - FORCE HORIZONTAL */
.filter-list-area {
    background: rgba(20, 20, 20, 0.5) !important;
    padding: 20px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 30px !important;
}

.filter-list-area .row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
}

.filter-list-area .col-lg-12 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Page title styling - INLINE */
.page-title-item {
    display: inline-block !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
    padding-right: 20px !important;
    border-right: 2px solid #e50914 !important;
    float: none !important;
    width: auto !important;
}

/* Filter dropdowns in horizontal row - FORCE INLINE */
.custom_select_filter {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    margin-right: 15px !important;
    margin-bottom: 10px !important;
    vertical-align: middle !important;
    clear: none !important;
}

.custom_select_filter select,
.custom_select_filter .nice-select,
.custom_select_filter .selectpicker {
    min-width: 180px !important;
    height: 45px !important;
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
    color: #fff !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.custom_select_filter select:hover,
.custom_select_filter .nice-select:hover {
    border-color: #e50914 !important;
    background: rgba(40, 40, 40, 0.9) !important;
}

/* Nice select plugin styling */
.nice-select {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 15px !important;
}

.nice-select:after {
    border-bottom: 2px solid #fff !important;
    border-right: 2px solid #fff !important;
    right: 15px !important;
}

.nice-select .list {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
    max-height: none !important;
    overflow: visible !important;
}

.nice-select .option {
    color: #fff !important;
    padding: 10px 15px !important;
    transition: background 0.2s ease;
}

.nice-select .option:hover,
.nice-select .option.selected {
    background: #e50914 !important;
    color: #fff !important;
}

/* Bootstrap select styling */
.bootstrap-select .dropdown-toggle {
    background: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 45px !important;
    padding: 10px 15px !important;
}

.bootstrap-select .dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
}

.bootstrap-select .dropdown-menu li a {
    color: #fff !important;
    padding: 10px 15px !important;
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a {
    background: #e50914 !important;
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .page-title-item {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        border-right: none;
        border-bottom: 2px solid #e50914;
        padding-bottom: 10px;
    }
    
    .custom_select_filter {
        margin-right: 10px !important;
    }
    
    .custom_select_filter select,
    .custom_select_filter .nice-select {
        min-width: 150px !important;
    }
}

@media (max-width: 767px) {
    .filter-list-area {
        padding: 15px 10px;
    }
    
    .custom_select_filter {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .custom_select_filter select,
    .custom_select_filter .nice-select {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-title-item {
        font-size: 16px;
        padding-bottom: 8px;
    }
    
    .custom_select_filter select,
    .custom_select_filter .nice-select {
        font-size: 13px !important;
        height: 42px !important;
        line-height: 42px !important;
    }
}

/* Fix for selectpicker dropdown */
.bootstrap-select.btn-group .dropdown-toggle .filter-option {
    color: #fff !important;
}

/* Ensure proper alignment */
.col-lg-12 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Add slight animation */
.custom_select_filter select,
.custom_select_filter .nice-select {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
