/* Operations Dashboard — AquaCore light-theme styles */

/* Chart containers */
.ops-chart-container {
    height: 220px;
    position: relative;
}

.ops-chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Sparklines */
.ops-sparkline {
    height: 40px;
}

.ops-sparkline canvas {
    width: 100%;
    height: 100%;
}

/* Gauge container */
.ops-gauge-container {
    width: 160px;
    height: 140px;
}

.ops-gauge-container canvas {
    width: 100%;
    height: 100%;
}

/* Status dot animations */
.ops-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ops-dot.normal { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.ops-dot.warning { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.ops-dot.alarm { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); animation: pulse-alarm 1.5s infinite; }

@keyframes pulse-alarm {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Severity badges */
.ops-sev {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ops-sev.critical { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.ops-sev.high { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.ops-sev.medium { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.ops-sev.low { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

/* Workflow status badges */
.ops-wf {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ops-wf.open { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.ops-wf.reviewing { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.ops-wf.ticket_created { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.ops-wf.resolved { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

/* Timeline */
.ops-timeline {
    position: relative;
    padding-left: 24px;
}

.ops-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.ops-timeline-item {
    position: relative;
    padding: 8px 0 16px 16px;
}

.ops-timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
    border: 2px solid white;
}

.ops-timeline-item.resolved::before { background: #22c55e; }
.ops-timeline-item.alarm::before { background: #ef4444; }

/* Navigation tabs */
.ops-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.ops-tab:hover { color: #111827; }

.ops-tab.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}
