/* SmartSites Dark Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent-purple: #a855f7;
  --accent-indigo: #6366f1;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f87171;
  
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-border-focus: 1px solid rgba(167, 139, 250, 0.5);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Global Reset & Base */
body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: #f8fafc;
  font-family: var(--font-body);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header & Brand */
.brand-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c084fc;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.brand-title {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Custom Navigation Pills */
.nav-pills-custom-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 50px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pills-custom-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-pills-custom .nav-link {
  color: #94a3b8;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
}

.nav-pills-custom .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-pills-custom .nav-link.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Form Controls Glassmorphism */
.form-control-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50px;
  color: #ffffff !important;
  padding: 12px 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

textarea.form-control-glass {
  border-radius: 18px;
}

.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(167, 139, 250, 0.6) !important;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3) !important;
  outline: none;
}

.form-control-glass::placeholder {
  color: #64748b;
}

.form-label-custom {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-select-glass {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50px;
  color: #ffffff !important;
  padding: 12px 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-select-glass:focus {
  border-color: rgba(167, 139, 250, 0.6) !important;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3) !important;
}

/* Buttons */
.btn-start {
  background: var(--primary-gradient);
  border-radius: 50px;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  box-shadow: 0 8px 25px var(--primary-glow);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

.btn-start:active {
  transform: translateY(0);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Color Pickers Customization */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 4px 14px 4px 6px;
}

.color-picker-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: transparent;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.color-val-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  font-family: monospace;
}

/* Logo Preset Selector */
.logo-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.logo-preset-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-preset-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
}

.logo-preset-item.active {
  background: rgba(99, 102, 241, 0.2);
  border: 2px solid #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.logo-preset-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.logo-preset-item span {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.logo-preset-item.active span {
  color: #ffffff;
  font-weight: 600;
}

/* QR Live Preview Container */
.qr-preview-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.qr-preview-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.qr-image-render {
  max-width: 220px;
  max-height: 220px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.qr-image-render:hover {
  transform: scale(1.03);
}

/* Metric Boxes */
.metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.metric-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

/* Status Badges */
.badge-neon-emerald {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-neon-amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
}

/* Toast Notifications */
.toast-glass {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
