/* Responsive sidebar */
.sidebar-aside {
    transition: transform 0.2s ease;
}
@media (min-width: 768px) {
    .sidebar-aside {
        transform: none !important;
    }
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.4);
}
.sidebar-backdrop.active {
    display: block;
}
@media (min-width: 768px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}
.status-ok {
    background: #dcfce7;
    color: #166534;
}
.status-error {
    background: #fee2e2;
    color: #991b1b;
}
.status-disabled {
    background: #fef3c7;
    color: #92400e;
}

/* Metric card threshold alerts */
.metric-card-warn {
    background: #fffbeb !important;
    border-left: 3px solid #f59e0b;
}
.metric-card-crit {
    background: #fef2f2 !important;
    border-left: 3px solid #ef4444;
    animation: metric-pulse 2s ease-in-out infinite;
}
@keyframes metric-pulse {
    0%, 100% { background-color: #fef2f2; }
    50% { background-color: #fee2e2; }
}

/* JSON display */
pre {
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 600px;
    overflow-y: auto;
}

/* Details summary arrow */
details summary {
    list-style: none;
}
details summary::before {
    content: "\25B6  ";
    font-size: 0.7em;
    transition: transform 0.15s;
    display: inline-block;
}
details[open] summary::before {
    transform: rotate(90deg);
}
