/* Overview grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.overview-card h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Summary */
.overview-summary {
    grid-column: 1 / -1;
}

.summary-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top files */
.overview-top-files {
    grid-column: 1 / -1;
}

.top-files-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-file-row {
    display: grid;
    grid-template-columns: 28px 1fr 90px 120px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius);
    transition: background 0.1s;
}

.top-file-row:hover {
    background: var(--bg-tertiary);
}

.top-file-rank {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.top-file-name {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-file-size {
    font-size: 13px;
    color: var(--accent);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.top-file-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.top-file-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Size buckets */
.bucket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bucket-row {
    display: grid;
    grid-template-columns: 110px 1fr 90px 80px;
    align-items: center;
    gap: 10px;
}

.bucket-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.bucket-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.bucket-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    border-radius: 4px;
}

.bucket-count, .bucket-size {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* File types */
.type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-row {
    display: grid;
    grid-template-columns: 12px 80px 1fr 80px 60px;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.type-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.type-name {
    font-size: 13px;
    text-transform: capitalize;
}

.type-count, .type-size, .type-percent {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.type-size {
    color: var(--text-secondary);
}
