/* ==========================================================================
   process.css — Process badge + process panel.
   Part of منصة عقاب dashboard styles. Split from the former app.css.
   Cascade order is significant; see docs/flows/INDEX.md.
   ========================================================================== */
/* ══ PROCESS BADGE ══ */
#proc-badge {
  display: none; align-items: center; gap: 5px;
  background: rgba(232,168,58,.12); border: 1px solid rgba(232,168,58,.3);
  color: var(--amber); border-radius: var(--r2); padding: 3px 9px;
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
#proc-badge:hover { background: rgba(232,168,58,.22); }
#proc-badge.active { display: flex; }
#proc-badge-dot { width: 6px; height: 6px; border-radius: var(--rf); background: var(--amber); animation: dotPulse 1.4s ease infinite; }

/* ══ PROCESS PANEL ══ */
#proc-panel {
  display: none; position: fixed; inset: 0; z-index: 450;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
}
#proc-panel.open { display: flex; }
.proc-card {
  background: var(--s1); border: 1px solid var(--b2);
  border-radius: var(--r4) var(--r4) 0 0;
  width: 100%; max-width: 540px; padding: 18px 18px 28px;
  box-shadow: 0 -20px 50px rgba(0,0,0,.45);
  max-height: 60vh; display: flex; flex-direction: column;
}
.proc-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-shrink: 0; }
.proc-title { flex: 1; font-family: var(--fh); font-size: 13.5px; font-weight: 700; color: var(--t1); }
.proc-kill-all {
  background: rgba(232,96,96,.1); border: 1px solid rgba(232,96,96,.28);
  color: var(--red); font-family: var(--fh); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r1); cursor: pointer; transition: background .15s;
}
.proc-kill-all:hover { background: rgba(232,96,96,.2); }
.proc-close { color: var(--t2); font-size: 14px; padding: 3px 8px; border-radius: var(--r1); cursor: pointer; }
.proc-close:hover { color: var(--t1); background: var(--s2); }
.proc-list { flex: 1; overflow-y: auto; }
.proc-empty { text-align: center; color: var(--t3); font-size: 12px; padding: 24px 0; }
.proc-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid var(--b0);
}
.proc-row:last-child { border-bottom: none; }
.proc-pid { font-family: monospace; font-size: 10px; color: var(--g); flex-shrink: 0; min-width: 44px; }
.proc-info { flex: 1; min-width: 0; }
.proc-cmd { font-size: 11.5px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; }
.proc-meta { font-size: 10px; color: var(--t3); margin-top: 2px; }
.proc-kill-btn {
  background: rgba(232,96,96,.08); border: 1px solid rgba(232,96,96,.22);
  color: var(--red); font-size: 10.5px; font-family: var(--fh); font-weight: 700;
  padding: 3px 8px; border-radius: var(--r1); cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.proc-kill-btn:hover { background: rgba(232,96,96,.18); }

