* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f6f8;
  color: #222;
}

/* ===== LOGIN ===== */
.admin-login {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 32px 26px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.login-title {
  margin: 0 0 22px;
  font-size: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
}

.field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: #333;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.error-text {
  margin-top: 10px;
  font-size: 13px;
  color: #c0392b;
  min-height: 18px;
}

/* ===== DASHBOARD ===== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e2e2;
}

.admin-main {
  padding: 28px;
   
}

.admin-controls {
  margin-bottom: 18px;
}

.admin-controls input {
  width: 100%;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.table-wrap {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.rsvp-table {
  width: 100%;
  border-collapse: collapse;

}

.rsvp-table th,
.rsvp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.rsvp-table th {
  background: #fafafa;
  font-weight: 600;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.checkin-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.checkin-btn.is-checked {
  border-color: #2ecc71;
  background: #eafff3;
}

.admin-controls {
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-controls input {
  width: min(420px, 100%);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.03);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
}

/* --- Name cell + Plus-one styling --- */
.name-cell {
  display: grid;
  gap: 6px;
}

.name-main {
  font-weight: 600;
}

.plusone-name {
  font-size: 12px;
  color: rgba(80, 40, 35, 0.65); /* softer tone */
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 22px; }
}