/* ═══════════════════════════════════════════════════════════════
   PREMIUM GLASS FILTER SYSTEM - ULTRA HIGH-END DESIGN
   ═══════════════════════════════════════════════════════════════ */

.premium-filter-system {
    margin: 20px 0 35px 0;
    perspective: 1000px;
    width: 100%;
}

.filter-main-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 15px 35px rgba(0, 50, 20, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark-mode .filter-main-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* --- Minimized View --- */
.filter-summary {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-summary:hover {
    background: rgba(0, 166, 81, 0.05);
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-icon-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #00A651, #00d66a);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(0, 166, 81, 0.25);
    animation: filterIconFloat 3s ease-in-out infinite;
}

@keyframes filterIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.filter-info {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
}

html.dark-mode .filter-label {
    color: #94a3b8;
}

.active-status-text {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

html.dark-mode .active-status-text {
    color: #f1f5f9;
}

.summary-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-count-badge {
    background: rgba(0, 166, 81, 0.12);
    color: #00A651;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(0, 166, 81, 0.1);
}

.expand-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 166, 81, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A651;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Selection Grid (Maximized) --- */
.filter-selection-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 166, 81, 0.05);
}

html.dark-mode .filter-selection-panel {
    background: rgba(15, 23, 42, 0.4);
}

.selection-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.status-pill {
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    padding: 12px 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    outline: none;
}

html.dark-mode .status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.status-pill i {
    font-size: 20px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.status-pill span {
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    color: #1e293b;
    white-space: nowrap;
}

html.dark-mode .status-pill span {
    color: #f1f5f9;
}

.status-pill:hover {
    transform: translateY(-4px) scale(1.05);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.15);
    border-color: rgba(0, 166, 81, 0.3);
}

html.dark-mode .status-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-pill:hover i {
    color: #00A651;
    transform: scale(1.2);
}

/* Active State */
.status-pill.active {
    background: linear-gradient(135deg, #00A651, #008f45);
    border-color: #00A651;
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

.status-pill.active i,
.status-pill.active span {
    color: white;
}

/* Open State */
.premium-filter-system.expanded .filter-selection-panel {
    max-height: 800px;
    padding-bottom: 10px;
}

.premium-filter-system.expanded .expand-chevron {
    transform: rotate(180deg);
    background: #00A651;
    color: white;
    border-color: #00A651;
}

.fa-spin-slow {
    animation: fa-spin 3s linear infinite;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .selection-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 16px;
    }

    .filter-info .active-status-text {
        font-size: 14px;
    }
}
