:root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
}

body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0f172a;
  color: #fff;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 16px;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 8px;
}

.table-wrapper {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
}

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  background: #f8fafc;
  position: sticky;
  top: 0;
}

.row-actions {
  white-space: nowrap;
}

.row-actions__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Form dialog */
.form-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.form-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.form-dialog .panel {
  padding: 24px;
}

.form-dialog .panel-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  margin: -24px -24px 0;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.panel-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  background: #0f172a;
  color: #fff;
  transition: background 0.15s ease;
}

button:hover {
  background: #1e293b;
}

button.ghost {
  background: #e2e8f0;
  color: #0f172a;
}

button.ghost:hover {
  background: #cbd5e1;
}

button.primary {
  background: #2563eb;
}

button.primary:hover {
  background: #1d4ed8;
}

button.danger {
  background: #dc2626;
}

button.danger:hover {
  background: #b91c1c;
}

.muted {
  color: #475569;
  margin: 4px 0 0;
}

.eyebrow {
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  font-size: 12px;
  margin: 0 0 4px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field input,
.field textarea,
.field select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.actions-column {
  width: 140px;
}

.hint {
  font-size: 12px;
  color: #475569;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 0;
}

.hint.error {
  background: none;
  border: none;
  padding: 0;
  color: #b91c1c;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 600;
}

.badge.published {
  background: #e0f2fe;
  color: #075985;
}

.badge.draft {
  background: #fef3c7;
  color: #92400e;
}

.badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.strong {
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row-actions button {
  padding: 6px 10px;
  font-size: 13px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 6px;
  padding: 0 4px 12px;
}

.filter-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #e2e8f0;
}

.filter-chip.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Time separator */
.separator-row td {
  padding: 0 !important;
  border-bottom: none !important;
}

.time-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.time-separator::before,
.time-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2563eb;
  opacity: 0.3;
}

.time-separator span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2563eb;
  white-space: nowrap;
}

/* Confirm dialog */
.confirm-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.confirm-dialog__content {
  padding: 24px;
}

.confirm-dialog__content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.confirm-dialog__content p {
  margin: 0 0 20px;
  font-size: 14px;
}

.confirm-dialog__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Status badges */
.badge.unpublished {
  background: #fef3c7;
  color: #92400e;
}

.badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* Review page */
.review-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.review-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.review-card__image {
  height: 200px;
  overflow: hidden;
}

.review-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__body {
  padding: 16px;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-card__header h3 {
  margin: 0;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.review-card__description {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}

.review-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: #475569;
}

/* Link styled as button */
a.button {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease;
}

a.button.ghost {
  background: #e2e8f0;
  color: #0f172a;
}

a.button.ghost:hover {
  background: #cbd5e1;
}

/* Image preview */
.image-preview {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 4px;
}
