html {
  font-size: 15px;
}

body {
  margin: 0;
  font-family: Bahnschrift, "Segoe UI Variable Text", sans-serif;
  background: #f6f4ee;
  color: #1f2937;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(199, 220, 255, 0.55), transparent 32%),
    linear-gradient(135deg, #f8f5ef, #eef2f8);
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(252, 211, 77, 0.28), transparent 30%),
    linear-gradient(135deg, #102542, #19376d);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  padding: 2rem 1.35rem;
  background: #132238;
  color: #f8fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: inline-block;
  margin-bottom: 2rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.admin-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-section-title {
  margin: 1.2rem 0 0.2rem;
  padding: 0 0.35rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar .nav-link-child {
  margin-left: 0.75rem;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.admin-main {
  padding: 1.5rem 1.5rem 2.5rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.top-bar-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.top-bar-user {
  color: #6b7280;
  font-size: 0.95rem;
}

.page-head {
  margin-bottom: 1.5rem;
}

.page-head.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: #9a3412;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.page-head h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card,
.content-card,
.feedback-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.metric-card {
  padding: 1.25rem;
}

.metric-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.metric-card span {
  display: block;
  color: #6b7280;
  margin-bottom: 0.45rem;
}

.metric-card strong {
  font-size: 2rem;
}

.metric-card-wide {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}

.metric-card-wide span {
  color: rgba(255, 255, 255, 0.8);
}

.content-card {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.feedback-list,
.feedback-admin-grid {
  display: grid;
  gap: 1rem;
}

.feedback-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feedback-card {
  padding: 1rem;
}

.feedback-card.full {
  min-height: 100%;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.feedback-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e5eef9;
  color: #1e3a8a;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.moderation-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-preview-wrap {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.moderation-photo {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-photo {
  max-height: 420px;
}

.feedback-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
}

.feedback-detail-main h2 {
  margin: 0.5rem 0 1rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.feedback-detail-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.feedback-detail-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.feedback-detail-side div {
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.feedback-detail-side span,
.feedback-detail-side small {
  display: block;
  color: #64748b;
}

.feedback-detail-side strong {
  display: block;
  margin-top: 0.25rem;
}

.button-row {
  display: flex;
  gap: 0.65rem;
}

.table-modern th {
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}

.report-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.report-table-wrap {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: auto;
}

.report-table {
  min-width: 1120px;
  margin-bottom: 0;
}

.report-table td {
  vertical-align: top;
}

.table-action-cell {
  width: 1%;
  white-space: nowrap;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.62rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid #d5deeb;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-admin-action:hover {
  color: #0f172a;
  border-color: #b6c5d9;
  background: #eef5ff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.btn-admin-action-secondary {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.btn-admin-action-secondary:hover {
  color: #9a3412;
  border-color: #fdba74;
  background: #ffedd5;
}

.report-table td span {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
}

.report-feedback-text {
  max-width: 320px;
}

.status-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 0.35rem 0.65rem;
  font-weight: 700;
}

.empty-report {
  display: grid;
  gap: 0.3rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 1rem;
  color: #64748b;
}

.action-cell {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
}

.btn-admin-primary {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.btn-admin-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.form-card {
  max-width: 760px;
}

.stack-gap {
  display: grid;
  gap: 1rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-card {
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.muted-copy {
  color: #64748b;
}

.text-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 992px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .page-head.split,
  .top-bar,
  .section-heading,
  .button-row,
  .report-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .btn-admin-action {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
