/* ---- Dashboard ---- */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.dashboard__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.dashboard__row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-md);
}

.dashboard__section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

/* ---- Recent Tickets Table ---- */
.recent-tickets {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.recent-tickets__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.recent-tickets__title {
    font-size: var(--text-base);
    font-weight: 700;
}

/* ---- Activity Feed ---- */
.activity-feed {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.activity-feed__header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--text-base);
    font-weight: 700;
}

.activity-feed__list {
    padding: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
}

.activity-feed__item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
}

.activity-feed__item:hover {
    background: var(--bg-tertiary);
}

.activity-feed__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 6px;
}

.activity-feed__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.activity-feed__text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-feed__time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ---- SLA Chart ---- */
.sla-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.sla-bar__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    width: 100px;
    flex-shrink: 0;
}

.sla-bar__track {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.sla-bar__fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.sla-bar__value {
    font-size: var(--text-sm);
    font-weight: 600;
    width: 48px;
    text-align: right;
}

@media (max-width: 1024px) {
    .dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard__stats {
        grid-template-columns: 1fr;
    }
}
