/* ===== DASHBOARD STYLES ===== */

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.stat-primary::before { background: var(--primary-light); }
.stat-card.stat-success::before { background: var(--success); }
.stat-card.stat-warning::before { background: var(--accent); }
.stat-card.stat-danger::before { background: var(--danger); }

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.7;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* Activity Feed */
.activity-feed {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.green { background: var(--success); }
.activity-dot.orange { background: var(--accent); }
.activity-dot.red { background: var(--danger); }
.activity-dot.blue { background: var(--info); }

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Compliance Gauge */
.gauge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gauge {
    width: 140px;
    height: 140px;
    position: relative;
}

.gauge svg {
    transform: rotate(-90deg);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

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

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

/* Pending tasks */
.pending-list {
    list-style: none;
}

.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.pending-item:last-child { border-bottom: none; }

.pending-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pending-priority {
    width: 6px;
    height: 24px;
    border-radius: 3px;
}

.pending-priority.high { background: var(--danger); }
.pending-priority.medium { background: var(--accent); }
.pending-priority.low { background: var(--info); }

.pending-text {
    font-size: 13px;
}

.pending-due {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Environment Status Indicator */
.env-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.env-room {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.env-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.env-room-name {
    font-size: 13px;
    font-weight: 600;
}

.env-room-grade {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.grade-a { background: #e8f8ef; color: #1e8449; }
.grade-b { background: #eaf2f8; color: #2471a3; }
.grade-c { background: #fef9e7; color: #b7950b; }
.grade-d { background: #f2f3f4; color: #566573; }

.env-room-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.env-room-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .env-status-grid {
        grid-template-columns: 1fr;
    }
}
