/* Admin-only styles. Builds on /css/styles.css. */

.login-card { max-width: 460px; margin: 3rem auto; text-align: center; }
.login-card h1 { margin-top: 0.5rem; }
.login-card .brand-logo { height: 150px; }
#google-button { display: flex; justify-content: center; }
.dev-login { margin-top: 1.5rem; padding: 1rem; display: grid; gap: 8px; text-align: left; border: 2px dashed var(--color-warning-text); border-radius: var(--radius-small); background: var(--color-warning-bg); }
.dev-login p { margin: 0; color: var(--color-warning-text); }

/* ---- Tabs ---------------------------------------------------------------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.tab {
  padding: 0.45rem 0.95rem; border-radius: 999px; color: var(--color-muted); font: inherit; font-weight: 600; cursor: pointer;
}
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { color: var(--color-primary-text); background: var(--color-primary); border-color: var(--color-primary); }
.tab .count { margin-left: 6px; }

/* ---- Listing cards ------------------------------------------------------- */

.admin-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 16px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin-card-header .badges { display: flex; gap: 6px; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0.75rem 0; }
.detail-grid dt { color: var(--color-muted); font-size: 0.875rem; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dd { margin-bottom: 0.5rem; }
}

.callout { padding: 0.6rem 0.9rem; border-radius: var(--radius-small); margin: 0.5rem 0; font-size: 0.925rem; }
.callout.warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.callout.danger { background: var(--color-danger-bg); color: var(--color-danger-text); }
.callout.private { background: var(--color-surface-alt); border: 1px dashed var(--color-border); }

.report-list { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 6px; }
.report-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--color-border); }

.history { margin-top: 0.75rem; font-size: 0.875rem; }
.history summary { cursor: pointer; color: var(--color-muted); }
.history ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.dialog.wide { width: min(720px, calc(100vw - 32px)); }

/* "Poster edits": before vs now, side by side. */
.diff-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.925rem; }
.diff-table th, .diff-table td { text-align: left; vertical-align: top; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--color-border); white-space: pre-line; overflow-wrap: anywhere; }
.diff-table thead th { color: var(--color-muted); font-weight: 600; }
.diff-table .old-value { color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-danger-text); }
.diff-table .new-value { background: var(--color-success-bg); color: var(--color-success-text); }
.diff-table th[scope="row"] { width: 1%; white-space: nowrap; }
