/* ================================================================
   codegen.css  —  Export Python Code button bar & toast styles
   ================================================================ */

/* ── Export bar (shown in results area after successful run) ───── */

.export-code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  flex-wrap: wrap;
}

.export-code-bar .export-bar-label,
.export-code-bar .export-code-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-right: 4px;
  white-space: nowrap;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-export:active {
  transform: scale(0.97);
}

/* Primary export button */
.btn-export-primary {
  background: #2563eb;
  color: #fff;
}
.btn-export-primary:hover {
  background: #1d4ed8;
}

/* Secondary export button (copy, download data) */
.btn-export-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #d0d7de;
}
.btn-export-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ── Toast notification ─────────────────────────────────────────── */

.codegen-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 22px;
  background: #1e293b;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.codegen-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.codegen-toast-error {
  background: #dc2626;
}
