/* ==========================================================================
   ASURA NEXUS — SKIN FILTER PANEL

   The skin filter panel, shared by the shop and the inventory. Both offer the
   same search-by-name / match-by-colour / sort controls over a wall of skin
   cards, so they wear one stylesheet — two copies would drift the first time
   either panel was touched, and the point of the inventory panel is that it
   behaves like the shop one people already know.

   Was a <style> block in a Jinja partial that several pages included. It is a
   stylesheet, so it is one now; linked from base.html.
   ========================================================================== */

/* --- SORT DROPDOWN (matches dino-shop filter-panel style) --- */
    .sort-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 800;
        color: #8e9297;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
    }
    .sort-input {
        background-color: rgba(0,0,0,0.4) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        color: #fff !important;
        border-radius: 8px;
        height: 42px;
        transition: all 0.3s;
        font-size: 0.85rem;
        font-weight: bold;
        min-width: 220px;
    }
    .sort-input:focus {
        border-color: var(--nexus-blue) !important;
        box-shadow: 0 0 10px rgba(35, 144, 193, 0.2) !important;
    }
    .sort-input option { background-color: #1a1b1e; color: #fff; }

/* --- SKIN FILTER PANEL --- */
    .skin-filter-panel {
        background-color: #1a1b1e;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 18px 22px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .skin-filter-section-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 800;
        color: #8e9297;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .skin-filter-panel .filter-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 800;
        color: #8e9297;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .skin-filter-panel .filter-input {
        background-color: rgba(0,0,0,0.4) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        color: #fff !important;
        border-radius: 8px;
        height: 42px;
        font-size: 0.85rem;
        font-weight: bold;
        transition: all 0.3s;
    }
    .skin-filter-panel .filter-input:focus {
        border-color: var(--nexus-blue) !important;
        box-shadow: 0 0 10px rgba(35, 144, 193, 0.2) !important;
    }
    .skin-filter-panel .filter-input option { background-color: #1a1b1e; color: #fff; }

    .price-slider-row { display: flex; align-items: center; gap: 8px; }
    .price-slider-input {
        flex: 1;
        height: 6px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255,255,255,0.08);
        border-radius: 3px;
        outline: none;
    }
    .price-slider-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px; height: 16px;
        background: #ffc107;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
    }
    .price-slider-input::-moz-range-thumb {
        width: 16px; height: 16px;
        background: #ffc107;
        border-radius: 50%;
        cursor: pointer;
        border: none;
    }
    .price-value {
        min-width: 90px;
        font-family: monospace;
        font-size: 0.8rem;
        color: #ffc107;
        text-align: right;
        font-weight: bold;
    }

    .filter-checkbox-row {
        display: flex; align-items: center; gap: 10px;
        height: 42px;
        padding: 0 14px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        background-color: rgba(0,0,0,0.4);
        cursor: pointer;
        transition: all 0.3s;
        user-select: none;
    }
    .filter-checkbox-row:hover { border-color: rgba(255, 193, 7, 0.4); }
    .filter-checkbox-row input[type="checkbox"] { accent-color: #ffc107; width: 16px; height: 16px; cursor: pointer; }
    .filter-checkbox-row .label-text { font-size: 0.8rem; font-weight: bold; color: #fff; }

    .color-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
    .color-filter-row {
        display: flex; align-items: center; gap: 10px;
        padding: 8px 12px;
        background-color: rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        transition: all 0.2s;
    }
    .color-filter-row.disabled { opacity: 0.4; }
    .color-filter-row:not(.disabled) { border-color: rgba(255, 193, 7, 0.25); }
    .color-filter-row input[type="checkbox"] { accent-color: #ffc107; width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
    .color-filter-row .part-label {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #aaa;
        min-width: 80px;
        flex-shrink: 0;
    }
    .color-filter-row input[type="color"] {
        width: 30px; height: 30px;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    .color-filter-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
    .color-filter-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 3px; }
    .color-filter-row .tol-slider {
        flex: 1;
        height: 4px;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255,255,255,0.08);
        border-radius: 2px;
        outline: none;
        min-width: 60px;
    }
    .color-filter-row .tol-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 12px; height: 12px;
        background: #ffc107;
        border-radius: 50%;
        cursor: pointer;
    }
    .color-filter-row .tol-slider::-moz-range-thumb {
        width: 12px; height: 12px;
        background: #ffc107;
        border-radius: 50%;
        cursor: pointer;
        border: none;
    }
    .color-filter-row .tol-value {
        font-family: monospace;
        font-size: 0.75rem;
        color: #ffc107;
        min-width: 38px;
        text-align: right;
        font-weight: bold;
        flex-shrink: 0;
    }

    .btn-filter-apply, .btn-filter-reset {
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        font-size: 0.8rem;
        transition: all 0.2s;
    }
    .btn-filter-apply {
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        border: none;
        color: #000;
        padding: 0 20px;
    }
    .btn-filter-apply:hover { box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35); transform: translateY(-1px); }
    .btn-filter-reset {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        color: #ccc;
        padding: 0 18px;
    }
    .btn-filter-reset:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }

    .filter-result-summary {
        font-size: 0.8rem;
        color: #8e9297;
        margin-top: 12px;
        text-align: right;
    }
    .filter-result-summary strong { color: #ffc107; }
