/* Admin-specific layout — uses aom.css design tokens */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Login */
.zion-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.zion-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
}

.zion-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.zion-login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  font-weight: 400;
}

.zion-login-logo p {
  font-size: 12px;
  color: var(--text);
  margin-top: 4px;
}

.zion-field {
  margin-bottom: 16px;
}

.zion-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.zion-field input {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.zion-field input:focus {
  border-color: var(--navy);
}

.zion-error {
  font-size: 13px;
  color: #c0392b;
  text-align: center;
  min-height: 20px;
  margin-bottom: 12px;
}

/* Shell */
.zion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--navy);
  color: white;
}

.zion-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: white;
}

.zion-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: white;
}

.zion-logout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
}

.zion-logout-btn:hover { background: rgba(255,255,255,0.1); }

.zion-nav {
  display: flex;
  gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.zion-nav-btn {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}

.zion-nav-btn.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  opacity: 1;
}

.zion-nav-btn:hover:not(.active) { color: var(--navy); }

/* Events dropdown */
.zion-dropdown {
  position: relative;
  display: inline-block;
}

.zion-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 160px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
}

.zion-dropdown.open .zion-dropdown-menu { display: block; }

.zion-dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
}

.zion-dropdown-item:hover { background: var(--bg); }
.zion-dropdown-item.active { color: var(--navy); font-weight: 600; }

.zion-main {
  padding: 28px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.zion-panel { display: none; }
.zion-panel.active { display: block; }

.zion-placeholder {
  color: var(--text);
  font-size: 15px;
  margin-top: 32px;
}

/* Users table */
.zion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.zion-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.zion-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.zion-table tr:last-child td { border-bottom: none; }
.zion-table tr:hover td { background: rgba(0,0,0,0.02); }

.zion-table-action {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--navy);
  padding: 4px 10px;
  cursor: pointer;
}

.zion-table-action:hover:not(:disabled) {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Modal */
.zion-modal-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.zion-modal-cancel {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  padding: 10px 20px;
  cursor: pointer;
}

.zion-modal-cancel:hover { background: var(--bg); }

/* Modal field display — read-only data views (Events, Review Queue, etc.) */
.zion-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.zion-modal-header h3 {
  word-break: break-word;
  margin: 0;
}

.zion-modal-scroll {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}

.zion-modal-section {
  margin-bottom: 20px;
}

.zion-modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.zion-modal-field {
  margin-bottom: 10px;
}

.zion-modal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: 3px;
}

.zion-modal-value {
  font-size: 14px;
  color: #000;
  background: #fffde7;
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1.5;
}

.zion-modal-house-note {
  font-size: 11px;
  font-style: italic;
  color: #000;
  margin-left: 6px;
}

.zion-select {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
