/*
 * form.css — Shared styles for edit/create forms across the admin panel.
 * Loaded globally via base.html.
 */

/* ── Section dividers ───────────────────────────────────────────── */
.form-section-divider {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* ── Section header (blue rule with icon) ───────────────────────── */
.section-header {
  font-weight: 600;
  color: #0d6efd;
}

/* ── Required field asterisk ────────────────────────────────────── */
.required-field {
  color: #dc3545;
}

/* ── Hint text icon size ────────────────────────────────────────── */
.form-text i {
  font-size: 0.875rem;
}

/* ── Code / monospace textarea (replaces page-specific #request_body) */
.code-textarea {
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.code-textarea:focus {
  background-color: #fff;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ── Read-only metadata fields ──────────────────────────────────── */
.form-control[disabled] {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* ── Config panel (SSE / STDIO conditional sections) ────────────── */
.config-panel {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
}
