/* Delay Stats Page */

.stats-overview {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.stat-card {
    flex: 1;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px 12px;
    text-align: center;
}

.stat-value {
    font-family: 'SF Pro', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--color-primary-green);
}

.stat-label {
    font-family: 'SF Pro', sans-serif;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Quick stats */
.quick-stats {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 12px 16px;
    margin-bottom: 1.5rem;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-bg-gray);
}

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

.quick-label {
    font-family: 'SF Pro', sans-serif;
    font-size: 13px;
    color: var(--color-text-gray);
}

.quick-value {
    font-family: 'SF Pro', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-dark);
}

/* Line stats */
.line-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-bg-gray);
}

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

.line-stat-name {
    font-family: 'SF Pro', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-dark);
    width: 40px;
    flex-shrink: 0;
}

.line-stat-bar-container {
    flex: 1;
    height: 8px;
    background: var(--color-bg-gray);
    border-radius: 4px;
    overflow: hidden;
}

.line-stat-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.line-stat-value {
    font-family: 'SF Pro', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-dark);
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}

.line-stat-count {
    font-family: 'SF Pro', sans-serif;
    font-size: 11px;
    color: var(--color-text-muted);
    width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* Hour chart */
.chart-container {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px;
    margin-bottom: 1.5rem;
}

.hour-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
}

.hour-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.hour-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

.hour-label {
    font-family: 'SF Pro', sans-serif;
    font-size: 8px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Actions */
.stats-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}
