/* ============================================================
   base.css — variables, reset, shared buttons, shared icon sizing
   ============================================================ */

:root {
  --bg-app: #09090b;
  --bg-sidebar: #111113;
  --bg-canvas: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --border-color: #27272a;
  --text-primary: #f4f4f5;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --danger: #ef4444;
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 18px rgba(139, 92, 246, 0.3);
  --sidebar-full: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: var(--font-sans);
  color: inherit;
}

#app {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ---------------- SHARED BUTTONS ---------------- */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-secondary {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger);
  color: #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* ---------------- SHARED ICON SIZING ---------------- */
.tb-btn i,
.btn-primary i,
.btn-ghost i,
.icon-btn i {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 5px;
}
.icon-btn i {
  margin-right: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.tb-btn svg,
.btn-primary svg,
.btn-ghost svg,
.icon-btn svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  flex-shrink: 0;
}
.icon-btn svg {
  margin-right: 0;
  width: 15px;
  height: 15px;
}

.tb-btn svg,
.btn-primary svg,
.btn-ghost svg,
.icon-btn svg {
  stroke-width: 2;
}

body.export-page-body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
}
