/* Custom font setup */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;700&display=swap');

:root {
  /* Light Theme (Default) */
  --bg-0: #f8fafc;
  --bg-1: #f1f5f9;
  --card: rgba(255, 255, 255, 0.88);
  --card-border: rgba(226, 232, 240, 0.8);
  --text: #0f172a;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #06b6d4;
  --info-light: #ecfeff;
  
  --border: #cbd5e1;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 50px -15px rgba(15, 23, 42, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
  /* Dark Theme */
  --bg-0: #0b0f19;
  --bg-1: #111827;
  --card: rgba(17, 24, 39, 0.8);
  --card-border: rgba(37, 99, 235, 0.12);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #1e1b4b;
  
  --border: #374151;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg-0);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 45%),
    linear-gradient(to bottom, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  padding: 0;
}

/* Background floating elements */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}

body::before {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -10vw;
  right: -5vw;
}

body::after {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  bottom: -15vw;
  left: -10vw;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Header styling */
.app-header {
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.5rem;
  animation: pulse-glow 3s infinite ease-in-out;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.badge {
  background: linear-gradient(135deg, var(--accent), #ff7f56);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: none;
}

@media (min-width: 768px) {
  .breadcrumb-nav {
    display: block;
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Container & Layout */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 0.75rem;
}

@media (min-width: 768px) {
  .app-container {
    padding: 2rem 1.5rem;
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 1.25rem;
  animation: fade-in-up 0.6s ease-out;
}

.hero-section h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-section {
    margin-bottom: 2.5rem;
  }
  .hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
  }
  .hero-section p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
  }
}

@media (min-width: 992px) {
  /* Force open all accordions on desktop dashboard layout */
  .accordion-content {
    max-height: none !important;
    padding: 0 1.4rem 1.4rem !important;
    overflow: visible !important;
  }
  
  .accordion-header {
    pointer-events: none; /* Avoid clicks collapsing content on large views */
  }
  
  .accordion-arrow {
    display: none !important; /* Hide chevron on expanded cards */
  }
}

/* Cards Design System */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .card {
    padding: 1.5rem;
  }
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* QR Type Grid Styles */
.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .qr-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qr-type-grid .tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.4rem;
  width: 100%;
  height: 76px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  min-height: 44px;
}

.dark-theme .qr-type-grid .tab-btn {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.qr-type-grid .tab-btn .type-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.qr-type-grid .tab-btn .type-label {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}

.qr-type-grid .tab-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.qr-type-grid .tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.qr-type-grid .tab-btn.active .type-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Dynamic Input Forms Area */
.inputs-card {
  margin-bottom: 1.5rem;
}

.qr-fields-group {
  display: none;
  animation: fade-in 0.25s ease-out;
}

.qr-fields-group.active {
  display: block;
}

/* Form Components */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 1rem;
  min-height: 44px;
}

/* Datetime-local — explicit color-scheme so browser renders native controls correctly */
input[type="datetime-local"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 1rem;
  min-height: 44px;
  color-scheme: light;
  cursor: pointer;
}

.dark-theme input[type="text"],
.dark-theme input[type="url"],
.dark-theme input[type="email"],
.dark-theme input[type="number"],
.dark-theme select,
.dark-theme textarea {
  background: rgba(15, 23, 42, 0.4);
}

/* Dark theme datetime-local — color-scheme:dark forces white native controls */
.dark-theme input[type="datetime-local"] {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
  color: #f8fafc;
  color-scheme: dark;
}

input:focus, input[type="datetime-local"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--card);
}

.row.two-up,
.row.three-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .row.two-up {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .row.three-up {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.8rem;
  margin-bottom: 1rem;
}

.separator-text {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.1em;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  min-height: 40px;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Validation banner */
.validation-banner {
  background: var(--danger-light);
  border: 1px solid var(--danger);
  color: #ab1f00;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.4s ease-in-out;
}

.dark-theme .validation-banner {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Accordions Section */
.customiser-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--border);
}

.accordion-header {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}

.accordion-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.accordion-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: var(--transition);
}

.accordion-content {
  max-height: 0;
  padding: 0 1.4rem;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Active accordion state */
.accordion-item.active .accordion-arrow {
  transform: rotate(-135deg);
}

.accordion-item.active .accordion-content {
  max-height: 800px;
  padding: 0 1.4rem 1.4rem;
  overflow-y: auto;
}

/* Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
  margin: 1.2rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Color input overlay overrides */
input[type="color"] {
  -webkit-appearance: none;
  border: 1px solid var(--border);
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  padding: 0.15rem;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Logo Management Panels */
.logo-actions-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-file-upload {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.custom-file-upload:hover {
  background: var(--primary);
  color: white;
}

.selected-logo-status-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px dashed var(--border);
}

.selected-logo-preview {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.selected-logo-preview img,
.selected-logo-preview svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.selected-logo-desc {
  display: flex;
  flex-direction: column;
}

.selected-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.selected-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-logo-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .search-logo-box {
    grid-template-columns: 1.5fr 1fr;
  }
}

.logo-grid-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  background: rgba(248, 250, 252, 0.4);
}

.dark-theme .logo-grid-picker {
  background: rgba(15, 23, 42, 0.25);
}

.logo-gallery-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  height: 82px;
  transition: var(--transition);
}

.dark-theme .logo-gallery-card {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.logo-gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.logo-svg-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  transition: transform 0.2s ease;
}

.logo-gallery-card:hover .logo-svg-wrap {
  transform: scale(1.15);
}

.logo-svg-wrap svg {
  max-width: 100%;
  max-height: 100%;
}

.logo-meta {
  width: 100%;
  overflow: hidden;
}

.logo-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.logo-gallery-card:hover .logo-name {
  color: var(--primary);
}

/* Star Favorite Button inside Logo Cards */
.logo-star-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: none;
  border: none;
  font-size: 0.8rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.logo-star-btn:hover {
  color: #eab308;
  transform: scale(1.2);
}

.logo-star-btn.active {
  color: #eab308;
  text-shadow: 0 0 2px rgba(234, 179, 8, 0.3);
}

.dark-theme .logo-star-btn {
  color: #475569;
}

.dark-theme .logo-star-btn:hover,
.dark-theme .logo-star-btn.active {
  color: #fbbf24;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2rem 0;
}

/* Preview Column & Card Alignments */
.preview-canvas-card {
  text-align: center;
}

.section-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.undo-redo-toolbar {
  display: flex;
  gap: 0.5rem;
}

.tool-icon-btn {
  background: var(--bg-1);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tool-icon-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.tool-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* HUD Canvas Frame */
.canvas-outer-frame {
  background: var(--bg-1);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.25rem auto 1rem;
  border: 1px solid var(--card-border);
  max-width: 100%;
  width: 100%;
}

@media (min-width: 580px) {
  .canvas-outer-frame {
    padding: 1.5rem;
    margin: 0.5rem auto 1.5rem;
  }
}

.canvas-inner-view {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  max-width: 100%;
  width: 100%;
}

.preview-wrap canvas {
  max-width: 100%;
  height: auto !important;
}

/* Zoom HUD Controls */
.zoom-hud-bar {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.circle-hud-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}

.circle-hud-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Buttons System */
button {
  outline: none;
}

.btn-primary,
.btn-secondary,
.ghost-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.ghost-btn {
  background: var(--bg-1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.ghost-btn:hover {
  background: var(--border);
  color: var(--text);
}

.ghost-btn.danger-hover:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* Exporter Panels */
.download-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.export-box {
  background: rgba(248, 250, 252, 0.4);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

.dark-theme .export-box {
  background: rgba(15, 23, 42, 0.3);
}

.export-box h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.export-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .download-row {
    grid-template-columns: 1.2fr 1fr;
  }
}

.download-row select {
  margin-bottom: 0;
  width: 100%;
}

.download-row button {
  width: 100%;
}

.export-box button,
.export-box select {
  width: 100%;
}

.download-row.vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.border-box-style {
  border: 1px solid var(--card-border);
}

.transparency-row-bar {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.transparency-row-bar .checkbox-container {
  margin-bottom: 0;
  min-height: auto;
}

/* Info Cards Block */
.info-section {
  margin-top: 4rem;
  border-top: 1px solid var(--card-border);
  padding-top: 3rem;
}

.info-section h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.info-section > p {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.info-cards-grid {
  margin-bottom: 3rem;
}

.sub-info-card {
  padding: 1.5rem;
}

.sub-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.sub-info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SEO Sub-routes Panel */
.seo-keywords-links {
  padding: 1.5rem;
}

.seo-keywords-links h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.keywords-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Footer Section */
.app-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--card-border);
  background: var(--card);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.app-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  max-width: 360px;
}

.toast {
  background: var(--card);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  animation: slide-in-left 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-info {
  border-left-color: var(--info);
}

.toast-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted);
}

.toast-close-btn:hover {
  color: var(--text);
}

/* Keyframes & Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.2));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.fade-out {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
}

/* Empty State & Checkered Background Preview Styling */
.empty-state-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 360px;
  height: 360px;
  border: 2px dashed var(--border);
}

.dark-theme .empty-state-view {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.empty-state-illustration {
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
}

.empty-state-illustration svg {
  width: 100%;
  height: 100%;
}

.empty-state-view h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.empty-state-view p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 260px;
}

.preview-wrap.transparent-active {
  background-image: 
    linear-gradient(45deg, #efefef 25%, transparent 25%), 
    linear-gradient(-45deg, #efefef 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #efefef 75%), 
    linear-gradient(-45deg, transparent 75%, #efefef 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.dark-theme .preview-wrap.transparent-active {
  background-image: 
    linear-gradient(45deg, #1e293b 25%, transparent 25%), 
    linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #1e293b 75%), 
    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
}

/* Metadata Indicators */
.preview-meta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.meta-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.dark-theme .meta-badge {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
}

/* Redesigned Exporter Components */
.export-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  width: 100%;
}

.export-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.export-title-wrap h3 {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.export-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.export-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 4px;
}

.dark-theme .spec-label {
  background: rgba(255, 255, 255, 0.03);
}

.badge-format-png {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-format-svg {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-format-pdf {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #f97316 !important;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Responsive visibility utilities */
.mobile-only-header {
  display: flex !important;
}

.desktop-only-title {
  display: none !important;
}

@media (min-width: 992px) {
  .mobile-only-header {
    display: none !important;
  }
  
  .desktop-only-title {
    display: block !important;
  }
}

/* Accessibilities & Print overrides */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Quick download button styles */
.quick-download-wrap {
  margin: 0.5rem auto 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-primary.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 360px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.btn-primary.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Logo Customization Appearance settings panel */
.logo-appearance-settings {
  display: none;
  background: var(--bg-1);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--card-border);
}

.dark-theme .logo-appearance-settings {
  background: rgba(15, 23, 42, 0.35);
}

.has-logo-selected .logo-appearance-settings {
  display: block;
}

.logo-appearance-settings label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.logo-appearance-settings input[type="range"] {
  margin: 0.5rem 0 1rem;
}

.logo-appearance-settings input[type="color"] {
  height: 38px;
}

/* Advanced Toggle Buttons & Panels */
.advanced-toggle-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  margin: 0.5rem 0;
  min-height: 38px;
}

.advanced-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.advanced-toggle-btn.active {
  border-style: solid;
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.advanced-settings-panel {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  animation: fade-in 0.2s ease-out;
}

.dark-theme .advanced-settings-panel {
  background: rgba(255, 255, 255, 0.02);
}


