/* Health Dashboard Styles - Extracted from injectHealthCss function */
.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:8px}
.health-card{background:#0b0f17;border:1px solid #1c2330;border-radius:12px;padding:12px}
.health-card h4{margin:0 0 8px 0;font-size:14px;font-weight:600}
.kv{display:flex;justify-content:space-between;gap:12px;margin:4px 0;
    font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.pill{padding:2px 8px;border-radius:999px;font-size:12px;line-height:20px;
      border:1px solid transparent;display:inline-block}
.pill.ok{background:#0d2b19;color:#66d17a;border-color:#235e3e}
.pill.bad{background:#35151a;color:#ff9999;border-color:#6b2a33}
.pill.pill-yellow{background:#2d1810;color:#f59e0b;border-color:#7c4f1e}
.pill.pill-grey{background:#1c1c1c;color:#9ca3af;border-color:#1c2330}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* Production Status Styles */
.status-summary {
    background: var(--card-bg, #0b0f17);
    border: 1px solid var(--border, #1c2330);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.status-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #e5e7eb);
    font-size: 14px;
}

.status-value {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    min-height: 20px;
}

.status-value.healthy {
    color: var(--success, #66d17a);
}

.status-value.warning {
    color: var(--warning, #f59e0b);
}

.status-value.error {
    color: var(--danger, #ff9999);
}

/* Override font size for small status values */
.small.status-value {
    font-size: 13px;
    font-weight: 500;
}

.status-action {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    min-height: 16px;
}

.status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.status-healthy {
    background: var(--success-light, #0d2b19);
    color: var(--success, #66d17a);
    border: 1px solid var(--success-dark, #235e3e);
}

.status-pill.status-warning {
    background: var(--warning-light, #2d1810);
    color: var(--warning, #f59e0b);
    border: 1px solid var(--warning-dark, #7c4f1e);
}

.status-pill.status-error {
    background: var(--danger-light, #35151a);
    color: var(--danger, #ff9999);
    border: 1px solid var(--danger-dark, #6b2a33);
}

.status-pill.status-unknown {
    background: var(--muted-light, #1c1c1c);
    color: var(--text-muted, #9ca3af);
    border: 1px solid var(--border, #1c2330);
}

.health-status-note {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--info-light, #1c2330);
    border-radius: 6px;
    border-left: 3px solid var(--info, #3498db);
}

.admin-warning {
    background: var(--warning-light, #2d1810);
    border: 1px solid var(--warning, #f59e0b);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
}

/* P5 Production Metrics Styles */
.p5-metric-card {
    background: var(--card-bg, #0b0f17);
    border: 1px solid var(--border, #1c2330);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s ease;
}

.p5-metric-card:hover {
    border-color: var(--primary, #3498db);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #e5e7eb);
}

.metric-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.stat-name {
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-primary, #e5e7eb);
}

.stat-value.success {
    color: var(--success, #66d17a);
}

.stat-value.warning {
    color: var(--warning, #f59e0b);
}

.stat-value.danger {
    color: var(--danger, #ff9999);
}

.p5-summary {
    background: var(--muted-light, #1c1c1c);
    border-radius: 6px;
    padding: 12px;
}

.p5-summary .link {
    color: var(--primary, #3498db);
    text-decoration: none;
}

.p5-summary .link:hover {
    text-decoration: underline;
}

/* P5 Status Pills */
.pill.pill-p5-healthy {
    background: var(--success-light, #0d2b19);
    color: var(--success, #66d17a);
    border-color: var(--success-dark, #235e3e);
}

.pill.pill-p5-warning {
    background: var(--warning-light, #2d1810);
    color: var(--warning, #f59e0b);
    border-color: var(--warning-dark, #7c4f1e);
}

.pill.pill-p5-critical {
    background: var(--danger-light, #35151a);
    color: var(--danger, #ff9999);
    border-color: var(--danger-dark, #6b2a33);
}

/* Status Indicators for Scheduler Cards */
.analytics-metric-header {
    position: relative;
}

.status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    line-height: 1;
    color: white;
    background: var(--success, #22c55e);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    font-weight: bold;
}

.status-indicator.warning {
    color: white;
    background: var(--warning, #f59e0b);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-indicator.error {
    color: white;
    background: var(--danger, #ef4444);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-indicator.loading {
    color: white;
    background: var(--text-muted, #6b7280);
    border-color: rgba(107, 114, 128, 0.3);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Session Timeout Warning */
.session-timeout-warning {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--warning-light, #2d1810);
    border: 1px solid var(--warning, #f59e0b);
    border-radius: 8px;
    padding: 16px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.session-timeout-warning .warning-title {
    font-weight: 600;
    color: var(--warning, #f59e0b);
    font-size: 14px;
}

.session-timeout-warning .close-btn {
    background: none;
    border: none;
    color: var(--warning, #f59e0b);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.session-timeout-warning .warning-message {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 12px;
}

.session-timeout-warning .warning-actions {
    display: flex;
    gap: 8px;
}

.session-timeout-warning .extend-btn {
    background: var(--warning, #f59e0b);
    color: var(--dark, #1a1a1a);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.session-timeout-warning .extend-btn:hover {
    background: var(--warning-dark, #e68900);
}