/* Minimal overrides - Bootstrap handles the rest */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sticky footer layout */
.layout-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.layout-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.layout-footer {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  color: #64748b;
  font-size: 0.8125rem;
}

.image-preview {
  max-height: 180px;
  border-radius: 0.5rem;
  object-fit: contain;
  display: none;
  margin-top: 0.75rem;
}

/* Button loading state */
.btn-loading .btn-content { display: none !important; }
.btn-loading .btn-loading-content { display: inline-flex !important; align-items: center; justify-content: center; }

/* Page layout */
.page-container {
  min-height: 100vh;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.page-header {
  margin-bottom: 2rem;
}
/* Spacing utility (Bootstrap goes up to mb-5) */
.mb-8 {
  margin-bottom: 2rem;
}
.page-nav-actions {
  margin-bottom: 2rem;
}
.page-container .container > .form-card {
  margin-top: 1rem;
}
.page-nav-link {
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
}
.page-nav-link:hover {
  color: #0f172a;
  text-decoration: underline;
}
.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}
.page-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Cards */
.form-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.form-card .card-body { padding: 1.5rem 1.75rem; }

/* Index layout - hero left, features right */
.index-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
}
.index-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .index-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .features-section {
    min-width: 0;
  }
}

/* Index hero */
.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.feature-card {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #f1f5f9;
}
.feature-card .feature-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.feature-card .feature-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* Index features list - right column */
.features-section {
  min-width: 280px;
}
.features-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.feature-item:last-child {
  border-bottom: none;
}
.feature-item .feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.feature-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.feature-item .feature-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.feature-item .feature-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

/* Visualize preview */
.viz-preview-wrapper {
  display: block;
  line-height: 0;
}
.viz-preview-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
