/* =========================================================
   Monitoring System Widget - Section 7.01
   ========================================================= */

.monitoring-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.mw-toolbar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.mw-system-btn,
.mw-controls button {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: white;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mw-system-btn:hover,
.mw-controls button:hover {
    transform: translateY(-2px);
}

.mw-system-btn.active {
    background: #0f172a;
    color: white;
}

.mw-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0.65rem;
    align-items: stretch;
    margin: 1rem 0 1.25rem;
}

.mw-node {
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.mw-node.active {
    border-color: #5b5fa8;
    background: #eef2ff;
    transform: translateY(-4px);
}

.mw-node-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mw-node strong {
    color: #0f172a;
    font-size: 1.05rem;
    margin: 0.3rem 0;
}

.mw-node small {
    color: #475569;
    line-height: 1.35;
}

.mw-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b5fa8;
    font-size: 1.4rem;
    font-weight: 900;
}

.mw-reading-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.mw-reading-card,
.mw-status-card {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
}

.mw-reading-card span,
.mw-status-card span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mw-reading-card strong,
.mw-status-card strong {
    color: #0f172a;
    font-size: 1.3rem;
}

.mw-status-card.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.mw-status-card.warning strong {
    color: #9a3412;
}

.mw-slider-label {
    display: block;
    font-weight: 800;
    color: #334155;
    margin-top: 1rem;
}

.mw-slider {
    width: 100%;
    margin: 0.7rem 0 1rem;
    accent-color: #5b5fa8;
}

.mw-step-card {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.mw-step-card h3 {
    margin: 0.2rem 0 0.4rem;
}

.mw-step-counter {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mw-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

@media (max-width: 860px) {
    .mw-flow {
        grid-template-columns: 1fr;
    }

    .mw-arrow {
        transform: rotate(90deg);
    }

    .mw-reading-panel {
        grid-template-columns: 1fr;
    }
}
