/* =========================================================
   ALL APPLICATIONS PAGE — Page-specific styles
   ========================================================= */

/* ==================== HERO ==================== */
.list-hero {
    background: linear-gradient(135deg, #073E23 0%, #0B6B3A 55%, #052F1A 100%);
    border-radius: 16px;
    padding: 26px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(7, 62, 35, 0.15);
}

.list-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.18), transparent 70%);
    border-radius: 50%;
}

.list-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 70%);
    border-radius: 50%;
}

.list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.20);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #FEF08A;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.list-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 6px;
    color: #fff;
}

.list-subtitle {
    font-size: 14px;
    color: #E2E8F0;
    margin: 0;
}

/* Stat pills in hero */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.hero-pill i {
    font-size: 16px;
    opacity: 0.85;
}

.hero-pill strong {
    font-weight: 800;
}

.hero-pill.hero-pill-success {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.35);
}

.hero-pill.hero-pill-muted {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 0.85;
}

/* ==================== TOOLBAR ==================== */
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-muted);
    flex-wrap: wrap;
}

/* Search */
.list-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    height: 40px;
    padding: 0 12px 0 38px;
    min-width: 320px;
    max-width: 420px;
    flex: 1;
    transition: all 0.15s ease;
}

.list-search:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.12);
}

.list-search>i.mdi-magnify {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-soft);
    pointer-events: none;
}

.list-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-strong);
    width: 100%;
    height: 100%;
}

.list-search input::placeholder {
    color: var(--text-soft);
}

.list-search .clear-btn {
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-size: 18px;
    padding: 0 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.list-search .clear-btn:hover {
    color: var(--danger, #DC2626);
}

/* Filter chips */
.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chips .chip:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.filter-chips .chip.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(11, 107, 58, 0.22);
}

.filter-chips .chip .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 11px;
    font-weight: 700;
}

.filter-chips .chip.active .chip-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Toolbar right side */
.toolbar-right {
    display: flex;
    gap: 8px;
}

/* ==================== RESULT COUNT ==================== */
.result-count {
    padding: 12px 24px;
    font-size: 12.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
    background: #FCFDFE;
}

.result-count strong {
    color: var(--text-strong);
    font-weight: 700;
}

/* ==================== SPINNER ==================== */
.list-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--brand-primary-soft, #E8F5EE);
    border-top-color: var(--brand-primary, #0B6B3A);
    border-radius: 50%;
    animation: list-spin 0.9s linear infinite;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .list-search {
        min-width: 100%;
        max-width: 100%;
    }

    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-chips {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .list-hero {
        padding: 20px;
    }

    .list-title {
        font-size: 20px;
    }

    .hero-pill {
        font-size: 12px;
        padding: 6px 10px;
    }
}