/* Custom styles for Bootstrap advance_search.php */

/* Gradient header */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Enhanced form sections */
.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.3s ease;
    border-color: #007bff !important;
}

/* Radio button cards */
.form-check.p-3.border.rounded {
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check.p-3.border.rounded:hover {
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
}

.form-check.p-3.border.rounded:has(.form-check-input:checked) {
    border-color: #007bff !important;
    background-color: rgba(0,123,255,0.05);
}

/* Section headers */
h5.text-primary {
    position: relative;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 0px solid #007bff;
    color: #495057 !important;
    font-weight: 600;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Different colors for different sections */
h5.text-primary:nth-of-type(1) {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

h5.text-primary:nth-of-type(2) {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

h5.text-primary:nth-of-type(3) {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

h5.text-primary:nth-of-type(4) {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

h5.text-primary:nth-of-type(5) {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

/* Icon styling in headers */
h5.text-primary i {
    color: inherit;
    opacity: 0.8;
}

/* Remove the ::after pseudo-element since we're using full-width backgrounds */
h5.text-primary::after {
    display: none;
}

/* Form floating enhancements */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Date picker styling */
.form-floating > .form-select option {
    padding: 8px;
}

/* Button enhancements */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Card shadow enhancement */
.card.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Form section containers */
.row.mb-4 {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Add subtle separation between sections */
.row.mb-4:not(:last-child) {
    margin-bottom: 2.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body.p-4 {
        padding: 1rem !important;
    }
    
    h4.mb-0 {
        font-size: 1.3rem;
    }
    
    h5.text-primary {
        font-size: 1.1rem;
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 0.875rem 1rem;
    }
    
    .btn-lg {
        padding: 10px 24px;
        font-size: 1rem;
        width: 100%;
    }
    
    .row.mb-4 {
        margin-bottom: 1.5rem !important;
        border-radius: 6px;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    h5.text-primary {
        margin: -1.25rem -1.25rem 1.5rem -1.25rem;
        padding: 0.9rem 1.25rem;
    }
}

/* Focus states for accessibility */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Icon colors in form labels */
.form-floating label i.text-info {
    color: #17a2b8 !important;
}

.form-floating label i.text-success {
    color: #28a745 !important;
}

.form-floating label i.text-warning {
    color: #ffc107 !important;
}

.form-floating label i.text-danger {
    color: #dc3545 !important;
}

/* Date range section styling */
.border-top {
    border-color: rgba(0,0,0,0.1) !important;
}

/* Small text enhancements */
small.text-muted {
    font-size: 0.85rem;
}

/* Container responsive padding */
.container-fluid {
    max-width: 1400px;
}