/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== Base ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f4f0;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ===== Login Page ===== */
.login-body {
  background: linear-gradient(135deg, #1B4332 0%, #0D1B2A 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.login-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.login-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px;
}

.step-label {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}

/* Venue Grid */
.venue-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venue-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.venue-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.venue-btn:active {
  transform: scale(0.98);
}

.venue-emoji {
  font-size: 1.2rem;
}

.venue-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
}

.venue-divider::before, .venue-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.venue-divider span {
  font-size: 0.75rem;
  color: #bbb;
}

.admin-btn {
  background: #f5f0e5 !important;
  color: #8B6914 !important;
  border: 2px solid #C9A84C !important;
}

/* Venue Banner */
.venue-banner {
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Staff List */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.staff-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.staff-btn:hover {
  border-color: #C9A84C;
  background: #fdf8ee;
}

.staff-btn-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.staff-btn-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

/* PIN Input */
.pin-staff-name {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.pin-input-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pin-input-row input {
  width: 160px;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 8px;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 12px;
  outline: none;
}

.pin-input-row input:focus {
  border-color: #C9A84C;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #C9A84C;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #b89840;
}

.btn-primary:disabled {
  background: #ddd;
  cursor: not-allowed;
}

.login-error {
  text-align: center;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 10px;
  background: #fce4ec;
  border-radius: 8px;
}

.back-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding: 8px;
  border: none;
  background: none;
  color: #999;
  font-size: 0.82rem;
  cursor: pointer;
}

.back-btn:hover {
  color: #666;
}

/* ===== Shared ===== */
.hidden { display: none !important; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

header {
  background: #1B4332;
  color: #fff;
  padding: 16px 20px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 700;
}

main {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.loading-text {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 0.85rem;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  z-index: 1000;
  transition: opacity 0.3s;
}

.toast.fade-out {
  opacity: 0;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 24px 16px;
  }
}
