:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.surface {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.surface:hover {
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.chip-active {
    background-color: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.filter-chip {
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip:focus-visible {
    outline: 2px solid #cbd5f5;
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
}

.btn-primary {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #cbd5f5;
    color: #1e293b;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #e2e8f0;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #fbbf24;
    border-color: #fbbf24;
}

.pagination-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid #cbd5f5;
    background-color: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover,
.pagination-btn:focus {
    background-color: #e2e8f0;
}

.pagination-btn--active {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 2rem;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.text-muted {
    color: #64748b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.stat-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}
