/* ══════════════════════════════════════════════════════
   Shared component styles extracted from templates.
   Page-specific styles remain inline in each template.
   ══════════════════════════════════════════════════════ */

/* ── Risk Badges ── */
.risk-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.risk-badge.critical { background: rgba(220, 38, 38, 0.2); color: #dc2626; }
.risk-badge.high     { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.risk-badge.medium   { background: rgba(234, 179, 8, 0.2);  color: #eab308; }
.risk-badge.low      { background: rgba(34, 197, 94, 0.2);  color: #22c55e; }
.risk-badge.noise    { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.modal-overlay.visible {
    display: flex;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 1.25rem;
    transition: all 0.2s;
    line-height: 1;
}
.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-progress {
    margin: 1.5rem 0;
}
.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* ── Status Dots ── */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.status-dot.active,
.status-dot.sent { background: var(--success); }
.status-dot.inactive,
.status-dot.pending { background: var(--warning); }
.status-dot.error { background: var(--error); }
