/**
 * WattsUp Africa Map - Filter UI Styles
 * Frontend Agent: FE-JK-001
 * Task: TASK-015 - Filter UI components
 * 
 * Comprehensive styling for the advanced filter system
 */

/* ==========================================================================
   Filter Container
   ========================================================================== */

.wattsup-filters {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.wattsup-filters:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Filter Header
   ========================================================================== */

.filters-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.filters-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filters-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-icon {
    font-size: 20px;
}

.filters-toggle {
    display: flex;
    align-items: center;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Filter Summary */
.filters-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.active-filters-count {
    font-weight: 500;
}

.reset-filters-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.reset-filters-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reset-filters-btn.secondary {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.reset-filters-btn.secondary:hover {
    background: #c82333;
}

/* ==========================================================================
   Filter Body
   ========================================================================== */

.filters-body {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.filters-body::-webkit-scrollbar {
    width: 6px;
}

.filters-body::-webkit-scrollbar-track {
    background: #f9fafb;
}

.filters-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filters-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Loading State */
.filters-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Content */
.filters-content {
    padding: 20px;
}

/* ==========================================================================
   Filter Sections
   ========================================================================== */

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section-quick {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px;
    border-radius: 8px;
    border: none;
}

.filter-section-advanced {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Filter Labels */
.filter-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-count {
    font-weight: 400;
    color: #6b7280;
    font-size: 12px;
}

/* ==========================================================================
   Quick Filters
   ========================================================================== */

.filter-section-quick h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.quick-filter-btn:hover {
    border-color: #667eea;
    background: #f8fafc;
    color: #667eea;
}

.quick-filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.energy-icon, .status-icon {
    font-size: 16px;
}

/* ==========================================================================
   Search Filter
   ========================================================================== */

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #6b7280;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #374151;
}

/* ==========================================================================
   Select Inputs
   ========================================================================== */

.filter-select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    min-height: 120px;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select option {
    padding: 8px;
}

.filter-select option:checked {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   Checkbox Filters
   ========================================================================== */

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    background: #f8fafc;
}

.filter-checkbox-input {
    margin: 0;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    flex: 1;
}

.filter-checkbox-input:checked + .filter-checkbox-label {
    color: #667eea;
    font-weight: 500;
}

/* ==========================================================================
   Capacity Filter
   ========================================================================== */

.capacity-filter {
    space-y: 12px;
}

.capacity-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.capacity-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.capacity-input-group label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.capacity-input {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.capacity-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.capacity-separator {
    color: #6b7280;
    font-weight: 500;
    margin-top: 16px;
}

.capacity-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capacity-preset-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.capacity-preset-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.capacity-preset-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ==========================================================================
   Advanced Filters
   ========================================================================== */

.advanced-filter-toggle {
    margin-bottom: 16px;
}

.advanced-toggle-btn {
    background: none;
    border: none;
    color: #374151;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.advanced-toggle-btn:hover {
    color: #667eea;
}

.advanced-filters {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-subsection {
    margin-bottom: 20px;
}

.filter-subsection:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Date Filter
   ========================================================================== */

.date-filter {
    margin-top: 8px;
}

.date-inputs {
    display: flex;
    gap: 12px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.date-input-group label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.date-input {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==========================================================================
   Filter Actions
   ========================================================================== */

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apply-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.apply-filters-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .wattsup-filters {
        margin: 0 -10px 20px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .filters-header {
        border-radius: 0;
        padding: 12px 16px;
    }
    
    .filters-title h3 {
        font-size: 16px;
    }
    
    .filters-content {
        padding: 16px;
    }
    
    .quick-filters {
        gap: 6px;
    }
    
    .quick-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .capacity-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .capacity-separator {
        margin: 0;
        text-align: center;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .filters-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filters-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .capacity-presets {
        flex-direction: column;
    }
    
    .capacity-preset-btn {
        text-align: center;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .wattsup-filters {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .filter-section {
        border-color: #374151;
    }
    
    .filter-section-quick {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    }
    
    .filter-section-advanced {
        background: #374151;
        border-color: #4b5563;
    }
    
    .filter-label {
        color: #f9fafb;
    }
    
    .filter-count {
        color: #9ca3af;
    }
    
    .search-input,
    .filter-select,
    .capacity-input,
    .date-input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .search-input:focus,
    .filter-select:focus,
    .capacity-input:focus,
    .date-input:focus {
        border-color: #667eea;
    }
    
    .filter-checkbox:hover {
        background: #374151;
    }
    
    .filter-checkbox-label {
        color: #f9fafb;
    }
    
    .quick-filter-btn {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .quick-filter-btn:hover {
        background: #4b5563;
    }
    
    .capacity-preset-btn {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .capacity-preset-btn:hover {
        background: #4b5563;
    }
    
    .advanced-toggle-btn {
        color: #f9fafb;
    }
    
    .capacity-separator {
        color: #9ca3af;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .wattsup-filters {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .filters-header {
        background: none !important;
        color: #000 !important;
    }
    
    .toggle-btn,
    .reset-filters-btn,
    .apply-filters-btn {
        display: none;
    }
    
    .filters-body {
        max-height: none;
        overflow: visible;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.filter-checkbox-input:focus,
.search-input:focus,
.filter-select:focus,
.capacity-input:focus,
.date-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.quick-filter-btn:focus,
.capacity-preset-btn:focus,
.toggle-btn:focus,
.reset-filters-btn:focus,
.apply-filters-btn:focus,
.advanced-toggle-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   WattsUp Africa Button-Style Filter Bar
   ========================================================================== */

.wattsup-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(44, 142, 60, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(44, 142, 60, 1);
    flex-wrap: wrap;
    font-family: 'Open Sans', Arial, sans-serif;
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    z-index: 1000;
}

/* ==========================================================================
   Search Input - WattsUp Africa Style
   ========================================================================== */

.wattsup-search-wrapper.wattsup-search-wrapper {
    position: relative !important;
    min-width: 200px !important;
    flex: 1 !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.wattsup-search-icon.wattsup-search-icon,
.wattsup-search-wrapper .wattsup-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.wattsup-search.wattsup-search,
.wattsup-search-wrapper .wattsup-search,
input.wattsup-search {
    width: 100% !important;
    padding: 12px 16px 12px 40px !important;
    border: 2px solid transparent !important;
    border-radius: 25px !important;
    background: #f5f0e1 !important;
    font-size: 14px !important;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    color: #555555 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.wattsup-search.wattsup-search:focus,
.wattsup-search-wrapper .wattsup-search:focus,
input.wattsup-search:focus {
    border-color: #00a5cf !important;
    box-shadow: 0 0 0 3px rgba(0, 165, 207, 0.2) !important;
    transform: translateY(-1px) !important;
}

.wattsup-search::placeholder {
    color: rgba(85, 85, 85, 0.6);
}

.wattsup-search.has-value {
    background: linear-gradient(135deg, #2c8e3c 0%, #34a853 100%);
    color: white;
    border-color: #2c8e3c;
}

.wattsup-search.has-value::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.wattsup-search.has-value:focus {
    background: linear-gradient(135deg, #1e7e34 0%, #2c8e3c 100%);
}

/* ==========================================================================
   Button-Style Dropdowns
   ========================================================================== */

.wattsup-dropdown {
    padding: 12px 40px 12px 16px;
    border: 2px solid rgba(44, 142, 60, 0.3);
    border-radius: 25px;
    background: rgba(245, 240, 225, 0.95);
    color: #555555;
    font-size: 14px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    min-width: 140px;
    position: relative;
    z-index: 10;
    
    /* Custom dropdown arrow - Green */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%232c8e3c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    
    /* Remove any webkit styling that might interfere */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Ensure no pseudo-elements */
    box-sizing: border-box;
}

/* Remove any pseudo-elements that might cause issues */
.wattsup-dropdown::-ms-expand {
    display: none;
}

.wattsup-dropdown::before,
.wattsup-dropdown::after {
    content: none !important;
    display: none !important;
}

/* Fix option styles to prevent text disappearing */
.wattsup-dropdown option {
    background: #ffffff;
    color: #555555;
    padding: 8px 12px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    
    /* Prevent any pseudo-elements on options */
}

.wattsup-dropdown option::before,
.wattsup-dropdown option::after {
    content: none !important;
    display: none !important;
}

/* Specific hover state that preserves text */
.wattsup-dropdown:hover {
    border-color: #00a5cf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 165, 207, 0.2);
    background: rgba(245, 240, 225, 1);
    /* Ensure background image stays */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%232c8e3c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Option hover states (for browsers that support it) */
.wattsup-dropdown option:hover {
    background: #f0f8f0 !important;
    color: #555555 !important;
}

.wattsup-dropdown option:checked {
    background: #2c8e3c !important;
    color: white !important;
}

.wattsup-dropdown:focus {
    border-color: #00a5cf;
    box-shadow: 0 0 0 3px rgba(0, 165, 207, 0.2);
    transform: translateY(-1px);
    background: rgba(245, 240, 225, 1);
    /* Ensure background image stays */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%232c8e3c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Active state when a filter is selected */
.wattsup-dropdown.has-selection {
    background: linear-gradient(135deg, #2c8e3c 0%, #34a853 100%);
    color: white;
    border-color: #2c8e3c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.wattsup-dropdown.has-selection:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #2c8e3c 100%);
    /* Ensure background image stays white for selected state */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* ==========================================================================
   Right Section - Count & Reset
   ========================================================================== */

.wattsup-filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.wattsup-project-count {
    font-size: 14px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    color: #f5f0e1;
    white-space: nowrap;
}

.wattsup-project-count strong {
    color: #f7941d;
    font-weight: 700;
}

/* Reset Button - WattsUp Orange Style */
.wattsup-reset-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f7941d 0%, #ff8c00 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(247, 148, 29, 0.3);
    white-space: nowrap;
}

.wattsup-reset-btn:hover {
    background: linear-gradient(135deg, #e6850f 0%, #f7941d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247, 148, 29, 0.4);
}

.wattsup-reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(247, 148, 29, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .wattsup-filter-bar {
        gap: 10px;
        padding: 14px 16px;
        left: 20px;
        right: 20px;
    }
    
    .wattsup-dropdown {
        min-width: 120px;
        padding: 10px 36px 10px 14px;
        font-size: 13px;
    }
    
    .wattsup-search {
        padding: 10px 14px 10px 36px;
        font-size: 13px;
    }
    
    .wattsup-reset-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .wattsup-filter-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        top: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .wattsup-search-wrapper {
        order: 1;
        width: 100%;
        max-width: none;
        margin-bottom: 8px;
    }
    
    .wattsup-dropdown {
        min-width: auto;
        flex: 1;
        font-size: 12px;
        padding: 8px 30px 8px 12px;
    }
    
    .wattsup-filter-right {
        order: 2;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .wattsup-reset-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wattsup-filter-bar {
        border-radius: 16px;
        top: 8px;
        left: 8px;
        right: 8px;
    }
    
    .wattsup-dropdown {
        font-size: 11px;
    }
    
    .wattsup-project-count {
        font-size: 12px;
    }
    
    .wattsup-reset-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   Enhanced Hover Effects & Animations
   ========================================================================== */

@keyframes filterPulse {
    0% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
    50% { box-shadow: 0 4px 12px rgba(44, 142, 60, 0.15); }
    100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
}

.wattsup-dropdown.loading {
    animation: filterPulse 1.5s ease-in-out infinite;
}

/* Focus visible for accessibility */
.wattsup-dropdown:focus-visible,
.wattsup-search:focus-visible,
.wattsup-reset-btn:focus-visible {
    outline: 2px solid #2c8e3c;
    outline-offset: 2px;
}

/* Disabled state */
.wattsup-dropdown:disabled,
.wattsup-search:disabled,
.wattsup-reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

/* Dark mode disabled - keeping consistent brand appearance */
/*
@media (prefers-color-scheme: dark) {
    .wattsup-filter-bar {
        background: rgba(44, 142, 60, 0.95);
        border-color: rgba(247, 148, 29, 0.2);
    }
    
    .wattsup-search,
    .wattsup-dropdown {
        background: #f5f0e1;
        border-color: transparent;
        color: #555555;
    }
    
    .wattsup-search::placeholder {
        color: rgba(85, 85, 85, 0.6);
    }
    
    .wattsup-project-count {
        color: #f5f0e1;
    }
    
    .wattsup-project-count strong {
        color: #f7941d;
    }
}
*/

/* ==========================================================================
   V2 Layout Styles - Filter Bar Below Map
   ========================================================================== */

.wattsup-filter-bar-v2 .wattsup-filter-bar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 20px 0 !important;
    border-radius: 20px;
    z-index: 10;
    transform: none !important;
}

@media (max-width: 768px) {
    .wattsup-filter-bar-v2 .wattsup-filter-bar {
        margin: 12px 0;
        border-radius: 16px;
    }
}

/* V2 Layout Map Container */
.wattsup-v2-layout .wattsup-map-container {
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} 