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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0b0f19;
  color: #f1f5f9;
  line-height: 1.5;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Tab button active state */
.tab-btn {
  color: #94a3b8;
}
.tab-btn:hover {
  color: #ffffff;
}
.tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Radio duration card selected */
.duration-radio-card:has(input:checked),
.order-duration-option:has(input:checked) {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 0 1px #6366f1;
}

/* Toast */
.toast {
  pointer-events: auto;
  transition: all 0.25s ease-out;
  transform: translateY(8px);
  opacity: 0;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Print voucher slip when user clicks Cetak */
@media print {
  body * {
    visibility: hidden;
  }
  #print-voucher-card, #print-voucher-card * {
    visibility: visible;
  }
  #print-voucher-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #000;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
    padding: 20px;
  }
  #print-voucher-card button {
    display: none !important;
  }
  #print-voucher-card * {
    color: #000 !important;
  }
}

/* Tailwind-equivalent utility classes */
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[540px\] { min-height: 540px; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:w-auto { width: auto; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-5 { padding: 1.25rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 12; }
  .lg\:col-span-7 { grid-column: span 7 / span 12; }
}

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }

.border-slate-800 { border-color: #1e293b; }
.border-slate-700 { border-color: #334155; }
.border-slate-700\/80 { border-color: rgba(51, 65, 85, 0.8); }
.border-slate-700\/90 { border-color: rgba(51, 65, 85, 0.9); }
.border-slate-700\/50 { border-color: rgba(51, 65, 85, 0.5); }
.border-indigo-500 { border-color: #6366f1; }
.border-indigo-500\/50 { border-color: rgba(99, 102, 241, 0.5); }
.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3); }
.border-indigo-500\/20 { border-color: rgba(99, 102, 241, 0.2); }
.border-emerald-500\/40 { border-color: rgba(16, 185, 129, 0.4); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-rose-500\/40 { border-color: rgba(244, 63, 94, 0.4); }

.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/95 { background-color: rgba(2, 6, 23, 0.95); }
.bg-slate-950\/90 { background-color: rgba(2, 6, 23, 0.9); }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-800\/90 { background-color: rgba(30, 41, 59, 0.9); }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }
.bg-slate-800\/70 { background-color: rgba(30, 41, 59, 0.7); }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.bg-amber-500 { background-color: #f59e0b; }

.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-emerald-500:hover { background-color: #10b981; }

.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration: underline; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.transition { transition: all 0.2s ease-in-out; }
