/* ──────────────────────────────────────────────────────────
 * Admin: Contact Messages view
 *
 * Reuses generic admin styles (.admin-table, .reg-filter-bar,
 * .reg-row-detail, .reg-detail*, .modal-*, .btn*) from admin.css.
 * Only this view's bespoke pieces live here.
 * ────────────────────────────────────────────────────────── */

/* Make the row clickable as a whole, while still letting the
   action-cell buttons handle their own clicks. */
.contact-msg-row {
  cursor: pointer;
}

.contact-msg-row td {
  transition: background-color 0.12s ease;
}

.contact-msg-row:hover td {
  background-color: #f8fafc;
}

/* Column widths - keep the actions / created / toggle compact. */
.contact-msg-col-toggle {
  width: 32px;
}

.contact-msg-col-created {
  width: 120px;
}

.contact-msg-col-actions {
  width: 96px;
}

/* ── Course-of-interest pill ─────────────────────────────── */

.contact-msg-course-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.contact-msg-course-pill--developer {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.contact-msg-course-pill--architect {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.contact-msg-course-pill--bundle {
  background: #fdf4ff;
  color: #a21caf;
  border-color: #f5d0fe;
}

.contact-msg-course-pill--undecided {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

/* ── Detail-pane bits ────────────────────────────────────── */

.contact-msg-meta-value {
  font-size: 0.85rem;
  color: #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.contact-msg-utm-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-msg-utm-table .reg-answer-q {
  width: 30%;
  color: #6b7280;
  font-weight: 500;
}

.contact-msg-utm-table .reg-answer-a {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

/* ── Pagination footer ───────────────────────────────────── */

.contact-msg-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

.contact-msg-pagination-info {
  font-size: 0.85rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.contact-msg-pagination .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Edit modal summary ──────────────────────────────────── */

.contact-msg-edit-summary {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1f2937;
}

.contact-msg-edit-summary .reg-cell-sub {
  margin-top: 0.15rem;
}

/* ── Responsive (match the 768px breakpoint used elsewhere) ── */

@media (max-width: 768px) {
  .contact-msg-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .contact-msg-pagination-info {
    text-align: center;
  }
}
