:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --in-color: #16a34a;
  --out-color: #dc2626;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
}

.evox-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(30,58,138,0.3);
}

.evox-logo {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.3);
}

.evox-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.evox-btn-in {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 4px 15px rgba(22,163,74,0.4);
}

.evox-btn-in:active { transform: scale(0.95); }

.evox-btn-out {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 15px rgba(220,38,38,0.4);
}

.evox-btn-out:active { transform: scale(0.95); }

.evox-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.evox-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.evox-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

.evox-toast.success { background: #16a34a; }
.evox-toast.error   { background: #dc2626; }
.evox-toast.hidden  { display: none; }

.log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.log-badge-in  { background: #dcfce7; color: #16a34a; }
.log-badge-out { background: #fee2e2; color: #dc2626; }

.log-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.evox-btn-qr {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}

.evox-btn-qr:active { transform: scale(0.95); }
