/* ── FOH Panel Styles ──────────────────────────────────────────────── */
:root {
  --foh-bg:         #0f1117;
  --foh-surface:    #1a1d27;
  --foh-border:     #2d3148;
  --foh-text:       #e8eaf0;
  --foh-muted:      #8891aa;
  --foh-primary:    #5b6cfe;
  --foh-success:    #22c55e;
  --foh-warning:    #f59e0b;
  --foh-danger:     #ef4444;
  --foh-radius:     10px;
  --foh-shadow:     0 2px 12px rgba(0,0,0,0.4);
}

#foh-panel {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--foh-bg);
  color: var(--foh-text);
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
}

/* Header */
.foh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.foh-title { font-size: 1.6rem; font-weight: 700; margin: 0; }
.foh-event-select {
  background: var(--foh-surface);
  color: var(--foh-text);
  border: 1px solid var(--foh-border);
  border-radius: var(--foh-radius);
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
}
.foh-status-badge {
  background: var(--foh-success);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .05em;
  animation: foh-pulse 2s ease-in-out infinite;
}
@keyframes foh-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Stats */
.foh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.foh-stat-card {
  background: var(--foh-surface);
  border: 1px solid var(--foh-border);
  border-radius: var(--foh-radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--foh-shadow);
  transition: transform .15s;
}
.foh-stat-card:hover { transform: translateY(-2px); }
.foh-stat__value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.foh-stat__label { font-size: .8rem; color: var(--foh-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.foh-stat--capacity .foh-stat__value { color: var(--foh-primary); }
.foh-stat--sold     .foh-stat__value { color: var(--foh-warning); }
.foh-stat--remaining .foh-stat__value { color: var(--foh-success); }
.foh-stat--checkedin .foh-stat__value { color: #a78bfa; }

/* Breakdown */
.foh-breakdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.foh-type-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--foh-surface);
  border: 1px solid var(--foh-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .9rem;
}
.foh-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Controls */
.foh-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.foh-search {
  flex: 1;
  min-width: 200px;
  background: var(--foh-surface);
  color: var(--foh-text);
  border: 1px solid var(--foh-border);
  border-radius: var(--foh-radius);
  padding: 10px 16px;
  font-size: 1rem;
}
.foh-btn {
  padding: 10px 20px;
  border-radius: var(--foh-radius);
  border: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.foh-btn:hover { filter: brightness(1.15); }
.foh-btn--primary   { background: var(--foh-primary); color: #fff; }
.foh-btn--secondary { background: var(--foh-surface); color: var(--foh-text); border: 1px solid var(--foh-border); }
.foh-btn--success   { background: var(--foh-success); color: #fff; }
.foh-btn--danger    { background: var(--foh-danger); color: #fff; font-size: .8rem; padding: 5px 10px; }

/* Table */
.foh-table-wrap { overflow-x: auto; border-radius: var(--foh-radius); box-shadow: var(--foh-shadow); }
.foh-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--foh-surface);
  font-size: .9rem;
}
.foh-table th {
  background: #12151f;
  color: var(--foh-muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .08em;
  padding: 12px 16px;
  text-align: left;
}
.foh-table td { padding: 12px 16px; border-bottom: 1px solid var(--foh-border); vertical-align: middle; }
.foh-table tr:last-child td { border-bottom: none; }
.foh-table tr.foh-row--checked td { opacity: .5; }
.foh-table tr:hover td { background: rgba(255,255,255,.03); }
.foh-loading { text-align: center; color: var(--foh-muted); padding: 40px !important; }

.foh-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Modal */
.foh-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.foh-modal {
  background: var(--foh-surface);
  border: 1px solid var(--foh-border);
  border-radius: calc(var(--foh-radius)*1.5);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.foh-modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--foh-border);
}
.foh-modal__header h2 { margin: 0; font-size: 1.1rem; }
.foh-modal__close { background: none; border: none; color: var(--foh-muted); font-size: 1.3rem; cursor: pointer; }
.foh-modal__body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.foh-modal__body label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--foh-muted); }
.foh-modal__body input,
.foh-modal__body select,
.foh-modal__body textarea {
  background: var(--foh-bg);
  color: var(--foh-text);
  border: 1px solid var(--foh-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
}
.foh-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--foh-border);
}
