.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(20px, -20px);
}
.stat-card:nth-child(1)::after { background: var(--primary); }
.stat-card:nth-child(2)::after { background: var(--accent); }
.stat-card:nth-child(3)::after { background: var(--success); }
.stat-card:nth-child(4)::after { background: var(--warning); }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--border-radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: var(--primary); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon.amber { background: rgba(245,158,11,0.15); color: var(--warning); }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-change {
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.chart-title {
    font-size: 1rem;
    font-weight: 600;
}
.chart-container {
    position: relative;
    width: 100%;
    height: 260px;
}
.chart-container canvas { width: 100% !important; height: 100% !important; }

.widget-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
}
.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.duty-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.duty-item:last-child { border-bottom: none; }

.duty-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.8rem; color: white;
    flex-shrink: 0;
}

.duty-info { flex: 1; }
.duty-name { font-size: 0.9rem; font-weight: 500; }
.duty-role { font-size: 0.75rem; color: var(--text-muted); }

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.timeline-dot.cyan { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.timeline-dot.purple { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.timeline-dot.green { background: var(--success); box-shadow: 0 0 8px var(--success); }

.timeline-content { flex: 1; }
.timeline-title { font-size: 0.88rem; font-weight: 500; }
.timeline-time { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
