/* ==========================================================================
   edit.css — Stop button + inline edit form.
   Part of منصة عقاب dashboard styles. Split from the former app.css.
   Cascade order is significant; see docs/flows/INDEX.md.
   ========================================================================== */
/* ══ STOP BUTTON ══ */
#stop-btn {
  display: none;
  width: 36px; height: 36px; border-radius: var(--rf);
  background: rgba(232,96,96,.15); border: 1.5px solid rgba(232,96,96,.4);
  align-items: center; justify-content: center;
  flex-shrink: 0; align-self: flex-end;
  transition: background .15s, transform .1s;
}
#stop-btn:hover { background: rgba(232,96,96,.28); }
#stop-btn:active { transform: scale(.88); }
#stop-btn svg { width: 13px; height: 13px; }

/* ══ INLINE EDIT ══ */
.edit-form { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.edit-ta {
  width: 100%; background: rgba(255,255,255,.1); border: 1.5px solid var(--gbs);
  border-radius: var(--r2); color: var(--ubbl-text); font-family: var(--ff);
  font-size: 14px; line-height: 1.55; padding: 7px 10px; resize: none;
  outline: none; min-height: 38px; max-height: 180px; overflow-y: auto;
  direction: auto;
}
[data-theme="light"] .edit-ta { color: var(--s1); }
.edit-ta:focus { border-color: var(--gl); }
.edit-actions { display: flex; gap: 7px; }
.edit-save-btn {
  flex: 1; background: rgba(82,217,126,.15); border: 1px solid rgba(82,217,126,.4);
  color: var(--green); font-family: var(--fh); font-size: 12px; font-weight: 700;
  padding: 6px; border-radius: var(--r1); transition: background .15s;
}
.edit-save-btn:hover { background: rgba(82,217,126,.25); }
.edit-cancel-btn {
  background: rgba(255,255,255,.1); border: 1px solid var(--b2);
  color: var(--t1); font-family: var(--fh); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--r1); transition: background .15s;
}
.edit-cancel-btn:hover { background: rgba(255,255,255,.2); }
[data-theme="light"] .edit-cancel-btn { background: var(--s2); color: var(--t2); }
[data-theme="light"] .edit-cancel-btn:hover { background: var(--s3); }

