:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #eef2ff;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #eef2ff 0%, #f8faff 100%);
}

.admin-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 26px;
}

.admin-header .eyebrow {
  margin: 0 0 8px;
  color: #4338ca;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.admin-header p {
  margin: 10px 0 0;
  color: #475569;
  max-width: 720px;
  line-height: 1.7;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.settings-section {
  margin-bottom: 28px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.settings-form label {
  font-weight: 600;
  color: #111827;
}

.settings-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fcfcfd;
  font: inherit;
}

.event-list {
  margin-top: 18px;
}

.event-list h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.event-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.event-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.event-list li strong {
  display: block;
  color: #0f172a;
}

.event-list li span {
  color: #475569;
  font-size: 0.95rem;
}

.event-list li a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 700;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: #4338ca;
  cursor: pointer;
  text-decoration: none;
}

.form-button:hover {
  background: #3730a3;
}

.secondary-button {
  background: #0f172a;
  margin-left: auto;
}

.stat-card .stat-value {
  margin: 12px 0 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
}

.orders-section {
  background: #ffffff;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.orders-header h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.orders-header p {
  margin: 0;
  color: #475569;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.orders-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  color: #475569;
}

.orders-table tbody tr:hover {
  background: #f8fafc;
}

.status-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.status-badge.pending {
  background: #f8fafc;
  color: #0f172a;
}

.status-badge.completed {
  background: #d1fae5;
  color: #166534;
}

.actions-cell {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-button {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-button {
  background: #4338ca;
  color: white;
}

.delete-button {
  background: #ef4444;
  color: white;
}

.event-action-button,
.view-button {
  background: #1d4ed8;
  color: white;
}

.event-action-button[data-action="deleteEvent"] {
  background: #dc2626;
}

.event-actions-header {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.empty-row {
  text-align: center;
  padding: 36px 0;
  color: #64748b;
}

.login-body {
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(100%, 430px);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.login-panel h1 {
  margin: 0;
  font-size: 2rem;
}

.login-copy {
  color: #475569;
  line-height: 1.6;
}

.login-error {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 860px) {
  .orders-table th,
  .orders-table td {
    padding: 16px 12px;
  }

  .actions-cell {
    gap: 8px;
  }
}
