/**
 * Date Range Filter Component
 * Requirements: 12.5
 * 
 * Features:
 * - Date range selection using HTML5 date inputs
 * - Clear button
 * - Responsive design
 */

.date-range-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-range-filter__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-range-filter__input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-range-filter__label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.date-range-filter__input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    min-width: 140px;
}

.date-range-filter__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-range-filter__separator {
    color: #9ca3af;
    font-weight: 500;
}

.date-range-filter__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.date-range-filter__clear:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.date-range-filter__clear svg {
    width: 16px;
    height: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .date-range-filter {
        width: 100%;
    }
    
    .date-range-filter__inputs {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-range-filter__input-group {
        width: 100%;
    }
    
    .date-range-filter__input {
        flex: 1;
        min-width: 0;
    }
    
    .date-range-filter__separator {
        display: none;
    }
    
    .date-range-filter__clear {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
[data-theme="dark"] .date-range-filter__label {
    color: #9ca3af;
}

[data-theme="dark"] .date-range-filter__input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
    color-scheme: dark;
}

[data-theme="dark"] .date-range-filter__input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .date-range-filter__separator {
    color: #6b7280;
}
