/**
 * Project Filters Widget Styles
 * Modern shadcn-inspired design
 */

/* Filter Widget Container */
.project-filters-widget {
    background: #ffffff;
}

/* Form Styling */
.project-filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input Group */
.filter-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Label Styling - shadcn style */
.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    padding: 0 0.75rem !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0 !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Dropdown Styling */
.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #d1d5db !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f0fdf4 !important;
    color: #059669 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    font-weight: 500 !important;
}

/* Date Input Styling */
.filter-date-input {
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    background-color: #ffffff;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.filter-date-input:hover {
    border-color: #cbd5e1;
}

.filter-date-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.filter-date-input::placeholder {
    color: #94a3b8;
}

/* Date input calendar icon styling */
.filter-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.filter-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Submit Button Styling - shadcn style */
.filter-submit-btn {
    height: 42px;
    padding: 0 1.5rem;
    background: linear-gradient(to right, #16a34a, #22c55e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.filter-submit-btn:hover {
    background: linear-gradient(to right, #15803d, #16a34a);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.filter-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.filter-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

/* Icon in button */
.filter-submit-btn i {
    font-size: 1rem;
}

/* Widget Title */
.project-filters-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #d1d5db;
}

/* Loading State */
.filter-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.filter-submit-btn.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-filters-widget {
/* Responsive Design */
@media (max-width: 768px) {
    .project-filters-form {
        gap: 1rem;
    }
    
    .filter-input-group {
        gap: 0.375rem;
    }
}media (prefers-color-scheme: dark) {
    .project-filters-widget {
        background: #1e293b;
/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .project-filters-widget {
        background: #1e293b;
    }
    
    .filter-label {
        color: #f1f5f9;
    }   border-color: #334155 !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #e2e8f0 !important;
    }
    
    .filter-date-input {
        background-color: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .select2-dropdown {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .select2-container--default .select2-results__option {
        color: #e2e8f0 !important;
    }
}
