/* ==========================================================================
   BLUEVOLT QR STUDIO - MAIN STYLESHEET
   Clean Corporate & Enterprise Modern SaaS Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Core Corporate Dark Palette */
  --bg-primary: #030712;
  --bg-secondary: #0A0F1D;
  --bg-tertiary: #0F172A;
  --bg-card: rgba(10, 15, 29, 0.75);
  --bg-card-hover: #1E293B;
  --bg-surface: rgba(255, 255, 255, 0.03);

  /* Enterprise Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: #1E293B;
  --border-active: #334155;
  --border-accent: #3B82F6;

  /* Brand Accents */
  --blue-primary: #2563EB;
  --blue-bright: #3B82F6;
  --blue-light: #93C5FD;
  --blue-deep: #1D4ED8;
  --emerald-accent: #10B981;
  --amber-accent: #F59E0B;
  --rose-accent: #EF4444;

  /* Typography */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.75);

  /* Sizing */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lights */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-spot-1 {
  position: absolute;
  top: -120px;
  left: 25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(3, 7, 18, 0) 70%);
  filter: blur(80px);
}

.ambient-spot-2 {
  position: absolute;
  top: 40%;
  right: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(3, 7, 18, 0) 70%);
  filter: blur(90px);
}

.ambient-spot-3 {
  position: absolute;
  bottom: 0;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, rgba(3, 7, 18, 0) 70%);
  filter: blur(80px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* App Wrapper */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-xs);
  color: var(--blue-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.brand-badge-dot {
  width: 5px;
  height: 5px;
  background: #3B82F6;
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #0F172A;
  border: 1px solid #1E293B;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: var(--text-main);
  background: #1E293B;
  border-color: #334155;
}

.nav-btn.active {
  color: #FFFFFF;
  background: #1E293B;
  border-color: #3B82F6;
}

.nav-btn-icon {
  width: 14px;
  height: 14px;
}

.nav-btn-primary {
  background: #2563EB;
  color: #FFFFFF;
  border: 1px solid #3B82F6;
}

.nav-btn-primary:hover {
  background: #1D4ED8;
  border-color: #60A5FA;
}

/* Studio Main Workspace */
.studio-layout {
  max-width: 1360px;
  width: 100%;
  margin: 1.25rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Workspace Panel */
.studio-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Step Header */
.panel-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.step-title-group {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Right Fixed Sticky Preview Panel */
.preview-panel-sticky {
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* Footer Section */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #02040A;
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  height: 26px;
  width: auto;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInToast 0.25s ease forwards;
  max-width: 380px;
}

.toast.success { border-color: #10B981; }
.toast.success .toast-icon { color: #10B981; }
.toast.error { border-color: #EF4444; }
.toast.error .toast-icon { color: #EF4444; }
.toast.info { border-color: #3B82F6; }
.toast.info .toast-icon { color: #3B82F6; }

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
