/* djadmin-filters plugin - Filter-specific styles */
/* Base sidebar widget styles (wrapper, h3, form padding) are in the main theme CSS */
/* This file contains only filter-specific field layout and styling */

/* Filter field groups */
.admin aside form > div.filter-field {
    margin-bottom: 0;
}

.admin aside form > div.filter-field + div.filter-field {
    margin-top: 1.25rem;
}

/* Filter labels - override main form styles for sidebar context */
.admin aside form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    text-align: left;
    padding-top: 0;
}

.dark .admin aside form label {
    color: #e5e7eb;
}

/* Filter field widget container - handles multi-widget filters */
.admin aside form .filter-field-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Multi-widget filters (e.g., RangeFilter) - ensure inputs are inline */
.admin aside form .filter-field-widget input[type="number"],
.admin aside form .filter-field-widget input[type="text"],
.admin aside form .filter-field-widget input[type="date"],
.admin aside form .filter-field-widget select {
    flex: 1;
    min-width: 0;  /* Allow inputs to shrink */
}

/* Text between widgets (e.g., dash in range filters) */
.admin aside form .filter-field-widget::after {
    content: '';
}

/* Help text in sidebar */
.admin aside form small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark .admin aside form small {
    color: #9ca3af;
}

/* Error messages */
.admin aside form .errors {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.dark .admin aside form .errors {
    color: #f87171;
}

/* Filter results summary */
.admin aside .filter-results {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .admin aside .filter-results {
    border-color: #1f2937;
    color: #9ca3af;
}
