/* 
  iPhone Glassmorphism 2026 Light Mode Theme
  ATURAN KETAT: DILARANG MENGGUNAKAN GRADIENT & SHADOW APAPUN
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

/* GLOBAL ZERO SHADOW & ZERO GRADIENT ENFORCEMENT */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

:root {
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ios-bg: #F5F5F7;
  --ios-blue: #007AFF;
  --ios-blue-hover: #0066D6;
  --ios-green: #10B981;
  --ios-pink: #EA89BF;
  --ios-pink-dark: #D85A9B;
  --ios-text: #1C1C1E;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sf);
  background-color: var(--ios-bg);
  color: var(--ios-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PURE IPHONE FROSTED GLASS (NO GRADIENTS, NO SHADOWS) */
.ios-glass-card {
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ios-glass-header {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ios-glass-pill {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ios-glass-input {
  background-color: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-glass-input:focus {
  background-color: rgba(255, 255, 255, 0.98);
  border-color: var(--ios-blue);
  outline: none;
}

/* BUTTONS */
.ios-btn-primary {
  background-color: var(--ios-blue);
  color: #FFFFFF;
  border: 1px solid #0066D6;
  transition: all 0.15s ease-out;
}

.ios-btn-primary:hover:not(:disabled) {
  background-color: var(--ios-blue-hover);
}

.ios-btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.ios-btn-primary:disabled {
  background-color: #C7C7CC;
  border-color: #AEAEB2;
  cursor: not-allowed;
  opacity: 0.7;
}

.ios-btn-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #1C1C1E;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease-out;
}

.ios-btn-secondary:hover {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.20);
}

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

/* INTERACTIVE STAND BUTTONS */
.stand-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-family: var(--font-mono);
  border-radius: 4px;
  font-weight: 700;
  transition: transform 0.12s ease-out, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  width: 100%;
  touch-action: manipulation;
}

/* 1. STATUS TERSEDIA (UMKM BOLEH PILIH) */
.stand-btn-available {
  background-color: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #10B981;
  color: #065F46;
  cursor: pointer;
}

.stand-btn-available:hover {
  background-color: #ECFDF5;
  border-color: #059669;
  color: #047857;
  transform: scale(1.08);
  z-index: 25;
}

.stand-btn-available:active {
  transform: scale(0.92);
}

/* 2. STATUS TERPILIH OLEH USER */
.stand-btn-selected {
  background-color: #007AFF !important;
  border: 2px solid #0056B3 !important;
  color: #FFFFFF !important;
  transform: scale(1.12) !important;
  z-index: 35 !important;
  cursor: pointer;
}

/* 3. STATUS SUDAH TERISI OLEH PESERTA LAIN */
.stand-btn-occupied {
  background-color: #E4E4E7 !important;
  border: 1.5px solid #D4D4D8 !important;
  color: #A1A1AA !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

/* 4. STATUS KHUSUS STAND SPONSORSHIP (E01 - E12: TIDAK BOLEH DIPILIH) */
.stand-btn-sponsor {
  background-color: #FEF3C7 !important;
  border: 1.5px solid #F59E0B !important;
  color: #92400E !important;
  cursor: not-allowed !important;
  opacity: 0.95;
}

.stand-btn-sponsor:hover {
  background-color: #FDE68A !important;
  border-color: #D97706 !important;
}

/* 5. STATUS KHUSUS STAND PANITIA (V01 - V04: TIDAK BOLEH DIPILIH) */
.stand-btn-panitia {
  background-color: #EDE9FE !important;
  border: 1.5px solid #8B5CF6 !important;
  color: #5B21B6 !important;
  cursor: not-allowed !important;
  opacity: 0.95;
}

.stand-btn-panitia:hover {
  background-color: #DDD6FE !important;
  border-color: #7C3AED !important;
}

/* FESTIVAL BLUEPRINT CANVAS */
.festival-canvas {
  background-color: #89EA89;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* BLOK FASILITAS DENAH */
.blueprint-parkiran {
  background-color: #D9D9D9;
  border: 1.5px solid #BFBFBF;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-vip-guest {
  background-color: #D9D9D9;
  border: 1.5px solid #BFBFBF;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-sound {
  background-color: #D9D9D9;
  border: 1px solid #BFBFBF;
  color: #3F3F46;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-stage {
  background-color: #EA89BF;
  border: 2px solid #D85A9B;
  color: #FFFFFF;
  font-weight: 900;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-gate {
  background-color: #000000;
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HEADER KOLOM STAND */
.col-header-label {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 9px;
  color: #18181B;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.1;
  pointer-events: none;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* FLOATING ELEMENTS: HIDDEN WHEN SCROLLING NEAR SUBMIT BUTTON */
#toast-container {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#toast-container.toast-hidden-near-bottom {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, -15px) !important;
}

#mobile-floating-cta {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#mobile-floating-cta.cta-hidden-near-bottom {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

/* KARTU PESERTA RESMI: ZERO GRADIENT, ZERO SHADOW, CETAK & PDF READY */
#participant-card-pdf {
  background-color: #FFFFFF;
}

#ticket-barcode-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-width: 100%;
}

@media print {
  body * {
    visibility: hidden;
  }
  #ticket-modal, #participant-card-pdf, #participant-card-pdf * {
    visibility: visible;
  }
  #participant-card-pdf {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border: 1px solid #D4D4D8;
  }
}
