/* QR Maker — shared stylesheet */

:root {
  --accent: #ef4056;
  --accent-dark: #d32e44;
  --accent-glow: rgba(239, 64, 86, 0.35);
  --bg: #eef0f3;
  --card-bg: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e3e6ea;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / nav ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.brand img{
    height: 70px!important;
    max-width: 160px!important;
    margin-top: 0px!important;
    object-fit: contain;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:hover { opacity: .93; }
.btn-primary:active { transform: translateY(1px); }
.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 20px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: #fdecef;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; }

/* ---------------- Type tabs (QR generator) ---------------- */
.type-tabs {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 12px 28px var(--accent-glow);
}
.type-tab {
  flex: 1 1 auto;
  min-width: 90px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.type-tab.active { background: #fff; color: var(--accent); }
.type-tab:hover:not(.active) { background: rgba(255,255,255,0.15); }

/* ---------------- Forms ---------------- */
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f6f8;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help-text { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field label { margin: 0; font-weight: 500; }

/* Color swatches */
.color-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}
.swatch.selected { box-shadow: 0 0 0 2px var(--accent); }
input[type=color] { width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: none; }

/* ---------------- Alerts / flash ---------------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fda29b; }
.alert-info { background: #eff6ff; color: #1849a9; border: 1px solid #b2ccff; }

/* ---------------- Layout grid for generator page ---------------- */
.generator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .generator-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
.qr-preview {
  text-align: center;
}
.qr-preview .qr-image-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.qr-preview img { max-width: 260px; }
.qr-preview .actions { display: flex; gap: 10px; margin-top: 16px; }
.qr-preview .actions .btn { flex: 1; }

/* ---------------- Pricing ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.plan-card.featured { border-color: var(--accent); }
.plan-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin: 14px 0 4px; }
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.plan-features li { padding: 7px 0; font-size: 0.9rem; color: var(--muted); display: flex; gap: 8px; }
.plan-features li b { color: var(--text); }
.billing-toggle { display: flex; justify-content: center; gap: 10px; margin: 24px 0 6px; align-items: center; }

/* ---------------- Feature grid / how-to steps ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.step-row {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 12px; font-size: 0.95rem;
}

section.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 1.9rem; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

/* ---------------- Tables ---------------- */
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.data-table th, table.data-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
table.data-table th { background: #f8f9fb; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: .03em; }
table.data-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: #ecfdf3; color: #067647; }
.badge-pending { background: #fffaeb; color: #b54708; }
.badge-failed { background: #fef3f2; color: #b42318; }
.badge-info { background: #eff6ff; color: #1849a9; }

/* ---------------- App shell (dashboard layout) ---------------- */
.app-shell { display: flex; min-height: calc(100vh - 64px); }
.app-sidebar {
  width: 230px; background: #fff; border-right: 1px solid var(--border);
  padding: 24px 14px; flex-shrink: 0;
}
.app-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.92rem;
  margin-bottom: 4px;
}
.app-sidebar a.active, .app-sidebar a:hover { background: #fdecef; color: var(--accent); }
.app-main { flex: 1; padding: 32px; max-width: 1100px; }
.usage-bar { background: var(--border); border-radius: 6px; height: 8px; overflow: hidden; margin-top: 8px; }
.usage-bar-fill { height: 100%; background: var(--accent); }

@media (max-width: 820px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; padding: 12px; }
  .app-sidebar a { white-space: nowrap; margin-bottom: 0; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: #191b21; color: #c9cbd1; padding: 48px 0 24px; margin-top: 60px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #c9cbd1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid #2c2f38; margin-top: 32px; padding-top: 18px; font-size: 0.85rem; color: #8b8d94; text-align: center; }

/* ---------------- Misc utility ---------------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-14 { gap: 14px; }
.stat-tile { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.stat-tile .value { font-size: 1.8rem; font-weight: 800; }
.stat-tile .label { color: var(--muted); font-size: 0.85rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.qr-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.qr-history-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.qr-history-card img { width: 100%; max-width: 160px; margin: 0 auto 12px; }
