/* Shared Search Filter Component - Compact Design */

:root {
    --search-filter-container-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --search-filter-tooltip-bg-inverse: rgba(255, 255, 255, 0.9);
    --search-filter-tooltip-bg: rgba(0, 0, 0, 0.85);
    --search-filter-tooltip-fg: var(--text-inverse);
    --search-filter-btn-primary-shadow: 0 2px 6px rgba(193, 26, 26, 0.25);
    --search-filter-btn-primary-shadow-hover: 0 3px 10px rgba(193, 26, 26, 0.35);
    --search-filter-count-badge-bg: rgba(255, 255, 255, 0.2);
    --search-filter-category-tab-bg-dark: rgba(255, 255, 255, 0.05);
    --search-filter-category-tab-border-dark: rgba(255, 255, 255, 0.1);
    --search-filter-category-tab-hover-bg-dark: rgba(193, 26, 26, 0.15);
    --search-filter-license-sep-dark: rgba(255, 255, 255, 0.1);
    --search-filter-saved-hover-bg-dark: rgba(255, 255, 255, 0.05);
    --search-filter-icon-hover-bg-dark: rgba(255, 255, 255, 0.1);
    --search-filter-badge-new-bg: rgba(16, 185, 129, 0.15);
    --search-filter-badge-new-bg-dark: rgba(16, 185, 129, 0.2);
    --search-filter-badge-price-bg: rgba(59, 130, 246, 0.15);
    --search-filter-badge-price-bg-dark: rgba(59, 130, 246, 0.2);
    --search-filter-badge-price-fg: #2563eb;
    --search-filter-badge-price-fg-dark: #60a5fa;
    --search-filter-danger-hover-bg: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] {
    --search-filter-container-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --search-filter-tooltip-bg: var(--search-filter-tooltip-bg-inverse);
    --search-filter-tooltip-fg: var(--bg-body);
}

.search-filter-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--search-filter-container-shadow);
    max-width: 1400px;
    margin: 0 auto;
}

/* Mode Switch (Vehicles / License Plates) */
.search-mode-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.mode-btn i {
    font-size: 1rem;
}

.mode-btn:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary-text);
}

.mode-btn.active i {
    color: var(--on-primary-text);
}

/* Saved Searches Button in Mode Switch */
.saved-searches-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: auto;
}

.saved-searches-btn:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
    color: var(--primary);
}

.saved-searches-btn i {
    font-size: 1rem;
    color: var(--primary);
}

/* Make icons distinct between save and view saved searches */
.saved-searches-btn i.fa-folder-open {
    color: var(--primary);
}

/* Save Search Button (next to search button) */
.btn-save-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.btn-save-search:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
    color: var(--primary);
}

.btn-save-search i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.btn-save-search:hover i {
    color: var(--primary);
}

/* Saved Searches button in action bar */
.btn-saved-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
    flex-shrink: 0;
}

.btn-saved-searches:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.btn-saved-searches i {
    font-size: 1rem;
}

/* Saved searches notification badge (inline count) */
.saved-searches-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary-text);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-lg);
    padding: 0 5px;
    margin-left: 0.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .search-mode-switch {
        flex-wrap: wrap;
    }
    
    .mode-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
    
    .saved-searches-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .saved-searches-btn span {
        display: inline;
    }
}

/* Layout with Vertical Category Tabs */
.search-filter-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    align-items: stretch;
}

/* Hide category tabs in license plates mode */
.search-filter-container[data-mode="license-plates"] .category-tabs-compact {
    display: none;
}

/* Full width filter area in license plates mode */
.search-filter-container[data-mode="license-plates"] .search-filter-layout {
    grid-template-columns: 1fr;
}

/* Compact Vertical Category Tabs - Single column */
.category-tabs-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;
}

.category-tab-compact {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.category-tab-compact i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-tab-compact:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.category-tab-compact:hover i {
    color: var(--primary);
}

/* Task 12-13: Fixed category selection - clean active state without extra border */
.category-tab-compact.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.category-tab-compact.active i {
    color: var(--on-primary-text);
}

/* Task 12-13: Remove focus outline/border on category tabs */
.category-tab-compact:focus {
    outline: none;
    box-shadow: none;
}

.category-tab-compact:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hidden categories (initially collapsed) */
.category-tab-compact.hidden {
    display: none;
}

.category-tabs-compact.expanded .category-tab-compact.hidden {
    display: flex;
}

/* Show More Categories Button */
.category-more-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.category-more-btn i {
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-more-btn:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.category-more-btn:hover i {
    color: var(--primary);
}

.category-tabs-compact.expanded .category-more-btn i {
    transform: rotate(180deg);
}

/* Tooltip for show more button */
.category-more-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 8px;
    background: var(--search-filter-tooltip-bg);
    color: var(--search-filter-tooltip-fg);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.category-more-btn:hover::after {
    opacity: 1;
}

/* Tooltip */
.category-tab-compact::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    margin-left: 8px;
    background: var(--search-filter-tooltip-bg);
    color: var(--search-filter-tooltip-fg);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.category-tab-compact:hover::after {
    opacity: 1;
}

/* Filter Fields Area */
.filter-fields-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Filter Rows - Updated to fit 2 rows */
.filter-row-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.filter-row-compact.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.filter-row-compact.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.filter-row-compact.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.filter-row-compact.columns-1 {
    grid-template-columns: 1fr;
}

/* More filters panel rows need spacing */
.more-filters-panel-compact .filter-row-compact {
    margin-bottom: 0.625rem;
}

.more-filters-panel-compact .filter-row-compact:last-child {
    margin-bottom: 0;
}

/* Ensure range filters take full width within their field */
.filter-field-compact.has-range {
    grid-column: span 1;
}
@supports selector(:has(*)) {
  .filter-field-compact:has(.filter-range-compact) {
      grid-column: span 1;
  }
}

.filter-field-compact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-field-compact label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.filter-field-compact select,
.filter-field-compact input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    height: 42px;
}

.filter-field-compact select:focus,
.filter-field-compact input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

/* Range Fields (Price, Mileage, etc.) */
.filter-range-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.filter-range-compact input {
    min-width: 0;
    width: 100%;
}

/* Action Buttons Row */
.filter-actions-compact {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    justify-content: flex-end; /* Push all buttons to the right */
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* Left group: More Filters + Search */
.filter-actions-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Right group: Reset (conditional) + Save Search */
.filter-actions-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Reset button - hidden by default, only visible when filters are altered */
.btn-reset-compact {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-reset-compact.visible {
    display: inline-flex !important;
}

/* Shared button base styles - consistent dimensions */
.btn-search-compact,
.btn-more-filters-compact,
.btn-reset-compact {
    flex: 0 0 auto;
    min-width: 140px;
    height: 44px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-search-compact {
    background: var(--primary);
    color: var(--on-primary-text);
    border: none;
    box-shadow: var(--search-filter-btn-primary-shadow);
}

.btn-search-compact:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--search-filter-btn-primary-shadow-hover);
}

.btn-search-compact i {
    font-size: 16px;
}

.search-count-badge {
    background: var(--search-filter-count-badge-bg);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 14px;
}

.btn-more-filters-compact {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-more-filters-compact:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-accent);
}

.btn-reset-compact {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-reset-compact:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Task 1: Less filters button - same styling as More filters */
.btn-less-filters-compact {
    flex: 0 0 auto;
    min-width: 140px;
    height: 44px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-sizing: border-box;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-less-filters-compact:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-accent);
}

/* More Filters Panel */
.more-filters-panel-compact {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.more-filters-panel-compact.expanded {
    max-height: 600px;
    animation: fadeIn 0.25s ease-out 0.1s both;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 1400px) {
    .filter-row-compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-row-compact.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .filter-row-compact.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .filter-row-compact.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .filter-row-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .filter-row-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-filter-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .category-tabs-compact {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
    }

    .category-tab-compact {
        min-width: 48px;
        flex-shrink: 0;
    }

    .category-tab-compact::after {
        display: none;
    }

    .category-more-btn::after {
        display: none;
    }

    /* Show all categories on mobile (no collapse) */
    .category-tab-compact.hidden {
        display: flex;
    }

    .category-more-btn {
        display: none;
    }

    .filter-row-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Action buttons stack vertically on mobile */
    .filter-actions-compact {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 0.75rem;
        grid-column: 1;
    }

    .filter-actions-left,
    .filter-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .btn-search-compact,
    .btn-more-filters-compact,
    .btn-reset-compact {
        width: 100%;
        min-width: unset;
        max-width: unset;
        justify-content: center;
    }

    .filter-field-compact {
        width: 100%;
        min-width: 0;
    }

    .filter-field-compact select,
    .filter-field-compact input {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .filter-range-compact {
        width: 100%;
        min-width: 0;
    }

    .filter-range-compact input,
    .filter-range-compact select {
        width: 100%;
        min-width: 0;
    }

    .more-filters-panel-compact .filter-row-compact {
        grid-template-columns: 1fr;
    }

    .filter-row-compact.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .search-filter-container {
    background: var(--card-bg);
    box-shadow: var(--search-filter-container-shadow);
}

[data-theme="dark"] .category-tab-compact {
    background: var(--search-filter-category-tab-bg-dark);
    border-color: var(--search-filter-category-tab-border-dark);
}

[data-theme="dark"] .category-tab-compact:hover {
    background: var(--search-filter-category-tab-hover-bg-dark);
    border-color: var(--primary);
}

[data-theme="dark"] .category-tab-compact.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* License Plates Tab - special category at the end with separator */
.category-tab-compact.license-plates-tab {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.category-tab-compact.license-plates-tab::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--border-color);
}

/* Different icon color for license plates to distinguish it */
.category-tab-compact.license-plates-tab i {
    color: var(--text-muted);
}

.category-tab-compact.license-plates-tab:hover i {
    color: var(--primary);
}

[data-theme="dark"] .category-tab-compact.license-plates-tab::before {
    background: var(--search-filter-license-sep-dark);
}

/* =====================================================
   Saved Searches Modal Styles
   ===================================================== */

.saved-searches-modal,
.save-search-modal {
    max-width: 500px;
    width: 90%;
}

.saved-searches-list {
    max-height: 400px;
    overflow-y: auto;
}

.saved-searches-list .loading-state,
.saved-searches-list .error-state,
.saved-searches-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    color: var(--text-secondary);
    gap: var(--space-3);
}

.saved-searches-list .empty-state i,
.saved-searches-list .error-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.saved-searches-list .empty-state h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.saved-searches-list .empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

.saved-search-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.saved-search-item:last-child {
    border-bottom: none;
}

.saved-search-item:hover {
    background: var(--bg-hover);
}

.saved-search-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.saved-search-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-search-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Saved search notification badges (February 2026 UX update) */
.saved-search-notifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-2);
}

.saved-search-item.has-notifications {
    border-left: 3px solid var(--primary);
}

.notification-badge-new,
.notification-badge-price {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.notification-badge-new {
    background: var(--search-filter-badge-new-bg);
    color: var(--success);
}

.notification-badge-new i {
    color: var(--success);
}

.notification-badge-price {
    background: var(--search-filter-badge-price-bg);
    color: var(--search-filter-badge-price-fg);
}

.notification-badge-price i {
    color: var(--search-filter-badge-price-fg);
}

[data-theme="dark"] .notification-badge-new {
    background: var(--search-filter-badge-new-bg-dark);
    color: var(--success-text);
}

[data-theme="dark"] .notification-badge-new i {
    color: var(--success-text);
}

[data-theme="dark"] .notification-badge-price {
    background: var(--search-filter-badge-price-bg-dark);
    color: var(--search-filter-badge-price-fg-dark);
}

[data-theme="dark"] .notification-badge-price i {
    color: var(--search-filter-badge-price-fg-dark);
}

.saved-search-meta {
    display: flex;
    gap: var(--space-4);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.saved-search-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

/* Task 15: NEW badge for saved searches with new listings/price changes */
.saved-search-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: var(--on-primary-text);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    margin-left: var(--space-2);
    flex-shrink: 0;
}

.saved-search-new-info {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    margin-left: var(--space-2);
}

.saved-search-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.saved-search-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.saved-search-actions .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.saved-search-actions .btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color-strong);
}

.saved-search-actions .btn-icon.btn-danger:hover {
    background: var(--search-filter-danger-hover-bg);
    color: var(--error);
    border-color: var(--error);
}

/* Save Search Form */
.save-search-modal .form-group {
    margin-bottom: var(--space-5);
}

.save-search-modal .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.save-search-modal .form-control {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 1rem;
}

.save-search-modal .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.save-search-modal .form-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Dark mode for saved searches */
[data-theme="dark"] .saved-search-item:hover {
    background: var(--search-filter-saved-hover-bg-dark);
}

[data-theme="dark"] .saved-search-actions .btn-icon:hover {
    background: var(--search-filter-icon-hover-bg-dark);
}
