/* ==========================================================================
   Central Youth Design System (YouthOS)
   High-Energy, Street-Edged, Pitch Obsidian & Electric Neon Yellow Branding
   ========================================================================== */

:root {
  /* Brand Colors from Central Youth Logo */
  --brand-yellow: #FEE227;
  --brand-yellow-hover: #FFF176;
  --brand-yellow-glow: rgba(254, 226, 39, 0.45);
  --brand-yellow-dim: rgba(254, 226, 39, 0.12);
  --brand-yellow-border: rgba(254, 226, 39, 0.35);
  --brand-yellow-subtle: rgba(254, 226, 39, 0.05);

  /* Primary Theme Tokens */
  --primary: #FEE227;
  --primary-hover: #FFF176;
  --primary-glow: rgba(254, 226, 39, 0.45);
  --primary-text: #000000;

  /* Surfaces & Backgrounds (Pitch Black & Dark Obsidian) */
  --bg-main: #070709;
  --bg-surface: #0d0d12;
  --bg-card: rgba(18, 18, 24, 0.85);
  --bg-card-hover: rgba(26, 26, 34, 0.95);
  --bg-glass: rgba(14, 14, 18, 0.75);

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(254, 226, 39, 0.35);
  --border-gold-glow: rgba(254, 226, 39, 0.6);
  --border-focus: #FEE227;

  /* Accent Indicators */
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-amber: #F59E0B;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);
  --accent-rose: #F43F5E;
  --accent-rose-glow: rgba(244, 63, 94, 0.35);
  --accent-violet: #8B5CF6;

  /* Typography */
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Outfit', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(ellipse at 50% 0%, rgba(254, 226, 39, 0.1) 0%, #09090c 45%, #050507 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================================
   Top Identity Bar
   ========================================================================== */
.role-bar {
  background: rgba(8, 8, 11, 0.95);
  border-bottom: 1px solid rgba(254, 226, 39, 0.15);
  padding: 0.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.role-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.role-bar-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-yellow);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.role-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.role-select:focus {
  border-color: var(--brand-yellow);
}

.role-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  display: inline-block;
}

/* ==========================================================================
   Top Brand Masthead (Centered Logo Display)
   ========================================================================== */
.top-masthead {
  padding: 1.5rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(254, 226, 39, 0.12) 0%, rgba(7, 7, 9, 0) 75%);
  border-bottom: 1px solid rgba(254, 226, 39, 0.15);
}

.masthead-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.masthead-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.masthead-logo-link:hover {
  transform: scale(1.03);
}

.masthead-logo {
  height: 92px;
  width: auto;
  border-radius: 18px;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 28px var(--brand-yellow-glow), 0 6px 20px rgba(0, 0, 0, 0.8);
  background: #000000;
  display: block;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.masthead-badge {
  background: var(--brand-yellow-dim);
  color: var(--brand-yellow);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.masthead-dot {
  color: var(--border-gold);
}

.masthead-church {
  font-weight: 600;
  color: #D4D4D8;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(254, 226, 39, 0.2);
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--brand-yellow);
  background: var(--brand-yellow-dim);
  border-color: var(--border-gold);
  box-shadow: 0 0 12px rgba(254, 226, 39, 0.25);
  text-shadow: 0 0 8px rgba(254, 226, 39, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kiosk-btn {
  background: var(--brand-yellow);
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 18px var(--brand-yellow-glow);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.kiosk-btn:hover {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Container & Layout
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  width: 100%;
  flex: 1;
}

.container.checkin-container-fullscreen {
  max-width: 100%;
  width: 100vw;
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.container.register-container-fullscreen {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 2.5rem 1.25rem 4.5rem 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  box-sizing: border-box;
}


/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-glass);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(254, 226, 39, 0.28);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 18px rgba(254, 226, 39, 0.12);
}

/* ==========================================================================
   Metrics & Stats Grid
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(254, 226, 39, 0.15);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-yellow);
  color: #000000;
  box-shadow: 0 0 20px var(--brand-yellow-glow);
}

.btn-primary:hover {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-yellow);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--brand-yellow-dim);
  border-color: var(--brand-yellow);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(254, 226, 39, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-yellow, .badge-indigo {
  background: var(--brand-yellow-dim);
  color: var(--brand-yellow);
  border: 1px solid var(--border-gold);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* ==========================================================================
   Avatars
   ========================================================================== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-yellow);
  background: #111116;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 12px rgba(254, 226, 39, 0.2);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(254, 226, 39, 0.15);
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(6, 6, 8, 0.95);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer span {
  color: var(--brand-yellow);
}
