/* ===== BOTTOM FILTER PANEL STYLES ===== */
.filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    min-height: var(--filter-panel-collapsed-height);
    transform: translateY(calc(100% - var(--filter-panel-collapsed-height)));
    overflow: visible !important;
}

.filter-panel.expanded {
    transform: translateY(0);
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: var(--primary-color);
    height: var(--filter-panel-collapsed-height);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.filter-panel-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.filter-panel-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.filter-panel-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-left: 0.75rem;
    white-space: nowrap;
}

.filter-panel-content {
    flex: 0 0 auto;
    padding: var(--filter-panel-content-padding);
    background-color: var(--light-color);
    overflow: visible !important;
    position: static;
}

.filter-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-panel-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ===== FILTER CONTROLS ===== */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    align-items: start;
}

.filter-item {
    width: 100%;
    font-family: 'PT Sans Narrow', sans-serif;
}

.input-group {
    min-width: 300px;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.input-group-text {
    font-family: 'PT Sans Narrow', sans-serif;
    min-width: 100px;
    width: 100px;
    flex: 0 0 100px;
    text-align: center;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== BUTTON GROUP STYLES ===== */
.btn-group {
    display: flex;
}

.btn-group .btn {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}


/* ===== BOOTSTRAP SELECT STYLES ===== */
.bootstrap-select {
    width: 100% !important;
    flex: 1 1 auto !important;
    display: block !important;
}

.input-group .bootstrap-select {
    flex: 1 1 auto !important;
    width: 1% !important;
}

.bootstrap-select .dropdown-toggle {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    font-family: 'PT Sans Narrow', sans-serif !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border-left: none !important;
    height: auto !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bootstrap-select .dropdown-menu {
    font-family: 'PT Sans Narrow', sans-serif !important;
    font-size: 0.9rem !important;
    z-index: 1050 !important;
    overflow-y: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.bootstrap-select .dropdown-item {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #212529 !important;
    background-color: transparent !important;
}

.bootstrap-select .dropdown-item:hover,
.bootstrap-select .dropdown-item:focus {
    background-color: var(--accent-color) !important;
    color: white !important;
}

.bootstrap-select .dropdown-item.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bootstrap-select .dropdown-item.disabled {
    opacity: 0.5;
    color: #6c757d !important;
}

.bootstrap-select .dropdown-item .text-muted {
    font-size: 0.8rem;
    color: #666 !important;
}

.bootstrap-select .bs-actionsbox {
    width: 100% !important;
    padding: 0.25rem 0.5rem !important;
}

.bootstrap-select .bs-actionsbox .btn-group {
    width: 100% !important;
}

.bootstrap-select .bs-actionsbox .btn {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
}

.bootstrap-select .filter-option-inner-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== FORM CONTROLS ===== */
.form-check-label {
    font-size: 0.9rem;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 600;
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}