/* Components - Reusable UI Components */

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.sidebar-item.active {
    background: rgba(36, 107, 206, 0.15);
    color: #6fa8e8;
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Stat Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.75rem;
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

/* Section Headers */
.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Progress Bars */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.3s ease;
}

.progress-fill.green {
    background: var(--success);
}

.progress-fill.blue {
    background: var(--primary);
}

.progress-fill.yellow {
    background: var(--warning);
}

.progress-fill.red {
    background: var(--danger);
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(36, 107, 206, 0.2);
    color: #6fa8e8;
}

/* User Status */
.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.user-status.online {
    background: var(--success);
}

.user-status.away {
    background: var(--warning);
}

.user-status.offline {
    background: var(--text-muted);
}

/* System Health */
.system-health {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.health-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.health-value {
    font-size: 0.8rem;
    font-weight: 600;
}

.health-value.good {
    color: var(--success);
}

.health-value.warn {
    color: var(--warning);
}

.health-value.error {
    color: var(--danger);
}
