/* ================================================================
   USER.CSS — Status Karcis Parkir
   Professional Light Theme — 60/30/10 Rule
   Kesan: Nyaman · Aman · Tenang
   ================================================================ */
:root {
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #EEF2FF;
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --accent-pale:  #DBEAFE;
  --success:      #10B981;
  --success-bg:   #ECFDF5;
  --warning:      #F59E0B;
  --warning-bg:   #FFFBEB;
  --danger:       #EF4444;
  --text:         #0F172A;
  --text-2:       #334155;
  --text-muted:   #64748B;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm:    0 2px 8px rgba(15,23,42,0.08);
  --shadow-md:    0 4px 16px rgba(37,99,235,0.10);
  --shadow-lg:    0 8px 32px rgba(37,99,235,0.12);
  --shadow-xl:    0 16px 48px rgba(37,99,235,0.16);
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 460px;
  animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────────────────────────── */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
  color: white;
}

.title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ── Status Card ────────────────────────────────────────────────── */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Blue accent top stripe */
.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #3B82F6);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* ── Ticket ID ──────────────────────────────────────────────────── */
.ticket-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 12px;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* ── Plate Number ───────────────────────────────────────────────── */
.plate-number {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
  background: var(--accent-pale);
  border: 2px solid rgba(37,99,235,0.2);
  border-radius: var(--r-lg);
  padding: 10px 16px;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Info Grid ──────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.info-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.info-item label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.info-item span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ── Timer Section ──────────────────────────────────────────────── */
.timer-section {
  background: var(--surface-2);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}

.timer-value {
  font-size: 44px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
  margin: 8px 0;
}

.est-cost {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
}

/* ── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-active::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Footer Info ────────────────────────────────────────────────── */
.footer-info {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Error Card ─────────────────────────────────────────────────── */
.error-card {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
