/* ==========================================================================
   PRINTERBOX KIOSK - STYLESHEET
   Design System: Modern Glassmorphism Dark/Slate Theme with Vibrant Accents
   ========================================================================== */

:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(51, 65, 85, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(56, 189, 248, 0.4);
  
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.35);
  
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --danger: #ef4444;
  --warning: #f97316;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.25);
}

/* Reset & Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.1) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* APP HEADER */
.app-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-info h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-info h1 span {
  color: var(--primary);
}

.kiosk-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.kiosk-tab-btn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kiosk-tab-btn.active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

/* Status Indicator */
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator.online {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* MAIN LAYOUT */
.main-content {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* SECTION 1: UPLOAD & OPTIONS GRID */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* CARD SYSTEM */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.card-header h2 i {
  color: var(--primary);
}

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

/* DROP ZONE */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
}

.upload-icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--primary);
  gap: 6px;
}

.drop-zone h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-zone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.7);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.9);
}

.btn-block {
  width: 100%;
}

.btn-pay {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  font-size: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px var(--success-glow);
  margin-top: 16px;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--success-glow);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* FILE PREVIEW */
.file-preview-area {
  margin-top: 16px;
}

.file-info-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.file-info-badge i {
  font-size: 20px;
  color: var(--success);
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
}

.file-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-box {
  width: 100%;
  height: 320px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* OPTIONS FORM & SEGMENTED CONTROLS */
.options-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.segmented-item:hover {
  border-color: var(--border-highlight);
  background: rgba(30, 41, 59, 0.9);
}

.segmented-item.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.segmented-item i {
  font-size: 20px;
  color: var(--primary);
}

.segment-text {
  display: flex;
  flex-direction: column;
}

.segment-text strong {
  font-size: 13px;
  font-weight: 700;
}

.segment-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.row-group {
  display: flex;
  gap: 16px;
}

.col {
  flex: 1;
}

/* COUNTER CONTROL */
.counter-control {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-counter {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-counter:hover {
  background: rgba(255, 255, 255, 0.1);
}

.counter-control input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.paper-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

/* PRICE SUMMARY BOX */
.price-summary-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.price-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.price-row.total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

.total-amount {
  color: var(--accent-gold);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* SECTION 2: MONNAYEUR / COIN ACCEPTOR */
.monnayeur-container {
  max-width: 800px;
  margin: 0 auto;
}

.monnayeur-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.monnayeur-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monnayeur-title i {
  font-size: 28px;
  color: var(--accent-gold);
}

.order-id-badge {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
}

.payment-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

.metric-box.total .metric-value { color: var(--text-main); }
.metric-box.inserted .metric-value { color: var(--success); }
.metric-box.remaining .metric-value { color: var(--warning); }

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), var(--success));
  transition: width 0.4s ease;
}

/* HARDWARE COIN SLOT */
.coin-acceptor-box {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.coin-slot-hardware {
  background: #020617;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8);
}

.slot-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-arrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.slot-line {
  width: 120px;
  height: 10px;
  background: #000;
  border: 2px solid var(--accent-gold);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.slot-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* COIN BUTTONS */
.coin-tray {
  text-align: left;
}

.tray-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .coins-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.coin-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.coin-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.coin-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 3px solid #fef08a;
}

.coin-100 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); border-color: #cbd5e1; }
.coin-200 { background: linear-gradient(135deg, #cbd5e1, #64748b); border-color: #94a3b8; }
.coin-500 { background: linear-gradient(135deg, #fde047, #ca8a04); border-color: #fef08a; }
.coin-1000 { background: linear-gradient(135deg, #facc15, #eab308); border-color: #ffffff; }
.coin-2000 { background: linear-gradient(135deg, #f59e0b, #b45309); border-color: #fef08a; }
.coin-5000 { background: linear-gradient(135deg, #38bdf8, #0284c7); border-color: #e0f2fe; color: #fff; }

.coin-val { font-size: 15px; line-height: 1; }
.coin-unit { font-size: 9px; opacity: 0.8; }

.coin-label {
  font-size: 11px;
  color: var(--text-muted);
}

.change-return-box {
  margin-top: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--success);
}

/* SECTION 3: TICKET OTP */
.otp-ticket-container {
  max-width: 550px;
  margin: 0 auto;
}

.ticket-card {
  background: var(--bg-card);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 0 35px var(--success-glow);
}

.ticket-status-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ticket-header h2 {
  font-size: 20px;
  font-weight: 800;
}

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

/* OTP DISPLAY BOX */
.otp-display-box {
  background: rgba(15, 23, 42, 0.8);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  margin: 24px 0;
}

.otp-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 14px;
}

.otp-digits {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.otp-digit {
  width: 56px;
  height: 66px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.otp-instruction {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.ticket-details {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.t-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.t-row:last-child { margin-bottom: 0; }
.t-row span { color: var(--text-muted); }

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* SECTION 4: BORNE TERMINAL KIOSK */
.kiosk-terminal-screen {
  max-width: 900px;
  margin: 0 auto;
}

.kiosk-terminal-frame {
  background: #020617;
  border: 4px solid #334155;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-brand i {
  font-size: 24px;
  color: var(--primary);
}

.terminal-brand h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.terminal-brand span {
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-clock {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.terminal-body {
  padding: 36px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PIN KEYPAD ENTRY */
.pin-entry-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.pin-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pin-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pin-display {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pin-slot {
  width: 60px;
  height: 70px;
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.pin-slot.filled {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* PIN KEYPAD GRID */
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.key-btn {
  height: 60px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.key-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.key-btn:active {
  transform: scale(0.95);
}

.danger-key {
  font-size: 12px;
  font-weight: 800;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.warning-key {
  color: var(--warning);
  background: rgba(249, 115, 22, 0.1);
}

.pin-error-msg {
  margin-top: 16px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

/* PRINTING CONTAINER */
.printing-container {
  width: 100%;
  text-align: center;
}

.job-validated-header i {
  font-size: 44px;
  color: var(--success);
  margin-bottom: 10px;
}

.validated-job-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}

.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.meta-item strong {
  font-size: 13px;
}

/* PRINTER ANIMATION */
.printer-hardware-animation {
  margin: 24px 0;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
}

.printer-machine {
  width: 180px;
  height: 100px;
  background: #334155;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.printer-light.printing {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  top: 15px;
  right: 15px;
  box-shadow: 0 0 10px var(--success);
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.output-tray {
  width: 140px;
  height: 15px;
  background: #0f172a;
  position: absolute;
  bottom: 10px;
  left: 20px;
  border-radius: 4px;
  overflow: visible;
}

.printed-sheet {
  width: 120px;
  height: 70px;
  background: #ffffff;
  color: #000;
  font-size: 8px;
  font-weight: 800;
  padding: 6px;
  border-radius: 4px;
  position: absolute;
  top: -65px;
  left: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-40px);
  opacity: 0;
  transition: all 1s ease;
}

.printed-sheet.eject {
  transform: translateY(0);
  opacity: 1;
}

.print-status-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
}

.btn-kiosk-start {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  width: 100%;
}

.btn-kiosk-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-gold-glow);
}

/* CAMERA MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.video-container {
  width: 100%;
  height: 360px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HEADER RIGHT ACTIONS & STATS BADGE */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-badge-btn {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.stats-badge-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.stats-badge-btn strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* STATS MODAL & COUNTERS */
.stats-modal-card {
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.stat-box.primary { border-color: rgba(14, 165, 233, 0.4); }
.stat-box.bw { border-color: rgba(148, 163, 184, 0.3); }
.stat-box.color { border-color: rgba(245, 158, 11, 0.4); }
.stat-box.revenue { border-color: rgba(16, 185, 129, 0.4); }

.stat-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-box.primary .stat-value { color: var(--primary); }
.stat-box.color .stat-value { color: var(--accent-gold); }
.stat-box.revenue .stat-value { color: var(--success); }

.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.paper-tray-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.paper-tray-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  margin-top: 12px;
}

.history-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.history-list-container {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.history-item-left {
  display: flex;
  flex-direction: column;
}

.history-item-name {
  font-weight: 700;
  color: var(--text-main);
}

.history-item-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.history-item-right {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-gold);
}

.empty-history {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

/* ADMIN TAB BUTTON & PORTAL STYLES */
.admin-tab-btn {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-tab-btn.active {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px var(--success-glow);
}

.admin-container {
  max-width: 900px;
  margin: 0 auto;
}

.admin-login-card {
  max-width: 440px;
  margin: 40px auto;
  padding: 32px;
}

.admin-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.admin-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.login-error-msg {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.admin-dash-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dash-title i {
  font-size: 28px;
  color: var(--success);
}

.price-edit-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.price-edit-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

@media (max-width: 768px) {
  .price-edit-grid {
    grid-template-columns: 1fr;
  }
}

.input-unit {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-right: 12px;
}

.input-unit input {
  border: none;
  background: transparent;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 700;
  width: 100%;
}

.input-unit span {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 13px;
}

/* ADMIN LIVE JOBS TABLE */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-weight: 700;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

/* UTILITY CLASSES */
.hidden { display: none !important; }
