/* ==========================================================================
   ADMIN DASHBOARD STYLES (PIN: 1627)
   ========================================================================== */

.admin-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 800px;
  background: #FFF;
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.admin-drawer.open {
  transform: translateX(0);
}

.admin-header {
  background: var(--olive-dark);
  color: var(--cream-bg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-badge {
  background: var(--raspberry);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  background: var(--cream-paper);
}

/* PIN Lock Screen */
.admin-lock-screen {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.admin-lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-bg);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--olive-dark);
}

.pin-inputs-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.pin-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.8rem;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: #FFF;
  color: var(--olive-dark);
  outline: none;
}

.pin-digit:focus {
  border-color: var(--olive-dark);
  box-shadow: 0 0 0 3px rgba(61, 68, 26, 0.15);
}

/* Mode Switcher Control */
.admin-card-section {
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--olive-dark);
  margin-bottom: 0.25rem;
}

.admin-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.mode-segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mode-segmented-btn {
  padding: 1rem;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: var(--cream-bg);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.mode-segmented-btn:hover {
  border-color: var(--olive-dark);
}

.mode-segmented-btn.active {
  border-color: var(--raspberry);
  background: #FFF;
  box-shadow: 0 4px 14px rgba(146, 29, 59, 0.12);
}

.mode-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--olive-dark);
  margin-bottom: 0.2rem;
}

.mode-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Metric Counters */
.metrics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item-box {
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Dietary & Meals pill wrap */
.pill-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-dietary {
  background: var(--blush-soft);
  color: var(--raspberry);
  border: 1px solid var(--blush);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Guest Table */
.guest-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #FFF;
}

.admin-guest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.admin-guest-table th {
  background: var(--cream-paper);
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--olive-dark);
  border-bottom: 1px solid var(--border-strong);
}

.admin-guest-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.admin-guest-table tr:hover {
  background: var(--cream-bg);
}

.status-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-tag.accepted {
  background: #EAF3D8;
  color: #3D441A;
}

.status-tag.declined {
  background: #FEECEE;
  color: #921D3B;
}

.status-tag.pending {
  background: #F3F4F6;
  color: #6B7280;
}

.btn-table-action {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid var(--border-strong);
  background: #FFF;
  cursor: pointer;
}

.btn-table-action:hover {
  background: var(--olive-dark);
  color: #FFF;
}

@media (max-width: 600px) {
  .metrics-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mode-segmented-control {
    grid-template-columns: 1fr;
  }
}

/* Google Sheets Integration Styles */
.sheets-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sheets-badge.connected {
  background: #EBF7EE;
  color: #1E6E34;
  border: 1px solid #B8E4C0;
}

.sheets-badge.disconnected {
  background: #F4F4F5;
  color: #71717A;
  border: 1px solid #E4E4E7;
}

.sheets-integration-section {
  border-left: 4px solid var(--olive-dark);
}
