/* ===== CUSTOM SELECT STYLING ===== */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 10px 40px 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.custom-select:focus {
    border-color: var(--accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.custom-select:hover {
    border-color: var(--accent, #3b82f6);
}

.custom-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #94a3b8);
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.custom-select:focus + .custom-select-icon {
    transform: translateY(-50%) rotate(180deg);
    color: var(--accent, #3b82f6);
}

/* Filter Stats Styling */
.filter-stats .bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid var(--border-color, #e2e8f0);
}

.filter-stats .vr {
    width: 1px;
    height: 30px;
    background: var(--border-color, #e2e8f0);
    opacity: 1;
}

.filter-stats .fw-bold {
    font-size: 18px;
    font-weight: 700;
}

.filter-stats small {
    font-size: 12px;
    font-weight: 500;
}

/* View Controls Enhancement */
.view-controls {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customers-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile adjustments for custom selects */
@media (max-width: 576px) {
    .filter-stats {
        margin-top: 1rem;
    }
    
    .filter-stats .d-flex {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .custom-select {
        padding: 8px 32px 8px 8px;
        font-size: 14px;
    }
    
    .view-controls {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .customers-summary {
        justify-content: center;
    }
}

/* Enhanced form labels with icons */
.form-label i {
    opacity: 0.7;
}

/* Custom option styling (limited support) */
.custom-select option {
    padding: 8px 12px;
    font-size: 14px;
}

/* Focus and hover states for better UX */
.custom-select-wrapper:hover .custom-select-icon {
    color: var(--accent, #3b82f6);
}

/* Responsive spacing for filters */
@media (min-width: 768px) {
    .search-filters-container {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    .search-filters-container {
        padding: 2rem;
    }
}