/* SPARKO ScoreMaster - Marshal Transit & Staging Portal CSS */
:root {
  --marshal-primary: #00E5FF;
  --marshal-secondary: #32D74B;
  --marshal-accent: #00E5FF;
  --marshal-danger: #FF453A;
  --card-bg: #1E1E1E;
  --card-border: #2C2C2E;
}

.marshal-body {
  background: #121212;
  min-height: 100vh;
  color: #FFFFFF;
  font-family: var(--font-sans);
}

.marshal-header {
  background: #181818;
  border-bottom: 1px solid var(--card-border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.marshal-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.marshal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.marshal-badge-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.marshal-title-wrap h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
}

.marshal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.marshal-user-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marshal-officer-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #34d399;
}

.marshal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* LIVE STAGE BANNER */
.live-stage-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.live-stage-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-stage-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 600;
}

.live-team-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.live-stage-status-badge {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.status-ON_STAGE { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.status-SCORING_OPEN { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.status-SCORING_LOCKED { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.status-IDLE { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid #64748b; }

/* GRID LAYOUT */
.marshal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .marshal-grid {
    grid-template-columns: 1fr;
  }
}

/* SECTION CARDS */
.marshal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* QUEUE LIST */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.queue-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.queue-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.9);
}

.queue-item.active-transit {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.queue-item.on-stage-now {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.queue-lot {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #f59e0b;
  min-width: 75px;
}

.queue-team-info {
  flex: 1;
  padding: 0 16px;
}

.queue-team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.queue-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  gap: 12px;
}

.queue-badge-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-WAITING_TRANSIT { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid #475569; }
.badge-IN_TRANSIT { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-READY_STAGING { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.badge-ON_STAGE { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.badge-COMPLETED { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid #8b5cf6; }

/* INSPECTION MODAL / PANEL */
.inspection-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.selected-team-banner {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
}

.members-roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.88rem;
}

.member-pos {
  font-weight: 700;
  color: #f59e0b;
  min-width: 32px;
}

.member-name {
  flex: 1;
  font-weight: 600;
  color: #e2e8f0;
}

.member-id {
  font-family: monospace;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* CHECKLIST ITEMS */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #10b981;
  margin-top: 2px;
  cursor: pointer;
}

.checklist-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #f1f5f9;
}

.checklist-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.transit-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 70px;
}

.transit-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.btn-action-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-marshal-ready {
  flex: 1;
  padding: 12px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-marshal-ready:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-marshal-stage {
  flex: 1;
  padding: 12px 18px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-marshal-stage:hover {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* LOGS TABLE */
.transit-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.transit-log-table th {
  text-align: left;
  padding: 10px 12px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transit-log-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
