/* QRFlow — Custom Styles */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover { background: #4f46e5; box-shadow: 0 4px 14px rgba(99,102,241,.35); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: #fff;
  color: #374151;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 1.5px solid #e5e7eb;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { border-color: #6366f1; background: #f5f3ff; color: #6366f1; }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  color: #111827;
}
.form-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
}

/* QR type tab pills */
.type-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.15s;
  text-align: center;
  min-width: 64px;
}
.type-pill:hover { background: #ede9fe; color: #6366f1; }
.type-pill.active { background: #ede9fe; border-color: #6366f1; color: #6366f1; }

/* Dot/eye shape swatches */
.shape-swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #f9fafb;
  transition: border-color 0.15s;
}
.shape-swatch.active, .shape-swatch:hover { border-color: #6366f1; background: #ede9fe; }

/* Scan count badge */
.scan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0fdf4; color: #166534;
  border: 1px solid #bbf7d0;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}

/* Bio link button styles */
.bio-link-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.bio-link-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bio-link-btn:active { transform: translateY(0); }

/* Drag handle */
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }

/* Sortable ghost */
.sortable-ghost { opacity: 0.4; }

/* Animations */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease forwards; }

/* Mobile responsive tweaks */
@media (max-width: 640px) {
  .type-pill { min-width: 52px; padding: 8px 10px; }
}
