/* Date Range Selector Component Styles */

/* Modal specific styling */
#dateRangeModal .modal-dialog {
    max-width: 500px;
}

#dateRangeModal .period-type-selector .btn-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#dateRangeModal .period-type-selector .btn {
    flex: 1;
}

#dateRangeModal .period-type-selector .btn-check:checked + .btn {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

#dateRangeModal .date-input {
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

#dateRangeModal .date-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#dateRangeModal .form-text {
    font-size: 0.85rem;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

#dateRangeModal .form-text i {
    color: #6c757d;
    margin-right: 6px;
}

#dateRangeModal .modal-footer #quickSelectToday {
    color: #6c757d;
    font-size: 0.85rem;
}

#dateRangeModal .modal-footer #quickSelectToday:hover {
    color: #0056b3;
}

/* Active state for date range button */
#dateRangeBtn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

#dateRangeBtn i {
    margin-right: 6px;
}

/* Date selection option animations */
.date-selection-option {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Yearly input specific styling */
#yearlyDate {
    font-family: monospace;
    font-weight: 500;
}

/* Compact period selection styling (if used) */
.period-selection-compact {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    margin-top: 20px !important;
}

.period-btn-compact {
    padding: 6px 16px;
    background: transparent;
    border: none;
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.period-btn-compact:hover {
    background: white;
    color: #007bff;
}

.period-btn-compact.active {
    background: #007bff;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.period-btn-compact:not(:last-child) {
    margin-right: 2px;
}