/* Stats view */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.stats-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.stats-mode-button {
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.stats-mode-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.stats-mode-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.summary-card {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
    color: white;
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow);
}

.summary-card-label {
    display: block;
    color: rgb(255 255 255 / 0.72);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.summary-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stat-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.stat-item-label {
    color: var(--gray-700);
}

.stat-item-value {
    font-weight: 600;
    color: var(--primary-color);
}

