﻿/* ==========================================================================
   FREE QR CODE GENERATOR - SIMPLE & PREMIUM LIGHT THEME
   Crisp, High-Contrast, Minimalist Luxury Aesthetic (Apple / Stripe Style)
   ========================================================================== */

:root {
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff;
  
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --bg-page: #f8fafc;
}

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

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(15, 23, 42, 0.02) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

/* Premium Clean White Cards */
.premium-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 20px 30px -10px rgba(15, 23, 42, 0.06);
}

/* Tab Pills */
.type-tab-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #dbeafe;
  border-radius: 0.875rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.type-tab-btn:hover:not(.active) {
  background: #ffffff;
  color: #1e40af;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(37, 99, 235, 0.1);
}
.type-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.type-tab-btn.active .tab-icon {
  color: #60a5fa;
}
.type-tab-btn:hover:not(.active) {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.type-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.type-tab-btn.active .tab-icon {
  color: #60a5fa;
}

/* QR Live Preview Stage */
.qr-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background-image: 
    linear-gradient(to right, #f8fafc 1px, transparent 1px),
    linear-gradient(to bottom, #f8fafc 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* High Contrast Inputs */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* Laser animation for scanner */
@keyframes laserPulseClean {
  0% { top: 6%; opacity: 0.8; }
  50% { top: 94%; opacity: 1; filter: drop-shadow(0 0 8px #2563eb); }
  100% { top: 6%; opacity: 0.8; }
}

.scanner-laser-line-clean {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #2563eb 50%, transparent 100%);
  box-shadow: 0 0 16px #2563eb;
  animation: laserPulseClean 2.4s infinite ease-in-out;
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #2563eb;
}

/* Color Picker */
input[type="color"] {
  -webkit-appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 2px;
  cursor: pointer;
  background: #ffffff;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }

@media print {
  body * { visibility: hidden !important; }
  #qr-live-canvas, #qr-live-canvas * { visibility: visible !important; }
  #qr-live-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}