/* Database Migration Planner — Indigo Dark */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C5CE7;
  --primary-dim: rgba(108,92,231,0.12);
  --secondary: #A29BFE;
  --accent: #FDCB6E;
  --accent-dim: rgba(253,203,110,0.12);
  --green: #00B894;
  --red: #FF6B6B;
  --bg: #0D0A19;
  --bg-card: #16122A;
  --border: rgba(108,92,231,0.10);
  --text: #E8E0F5;
  --text-dim: #B8A9D4;
  --text-muted: #524A6A;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(22,18,42,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 750px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }

.main { max-width: 750px; margin: 0 auto; padding: 20px; }

.btn { padding: 8px 16px; font-family: var(--font); font-size: 0.78rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.btn-sm { padding: 5px 10px; font-size: 0.72rem; background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(108,92,231,0.2); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #5A4BD1); color: #fff; }

.add-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.add-row { display: flex; gap: 6px; flex-wrap: wrap; }
.input { flex: 1; min-width: 100px; padding: 7px 10px; font-family: var(--font); font-size: 0.78rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; outline: none; }
.input-sm { max-width: 120px; }
.select { padding: 7px 10px; font-family: var(--font); font-size: 0.72rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; outline: none; cursor: pointer; }

.timeline-card, .sql-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.step-count { font-size: 0.68rem; font-weight: 600; color: var(--primary); background: var(--primary-dim); padding: 2px 8px; border-radius: 10px; }

.timeline { padding: 12px; }
.step-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(108,92,231,0.04); position: relative; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.step-dot.add { background: var(--green); }
.step-dot.drop { background: var(--red); }
.step-dot.rename { background: var(--accent); }
.step-dot.change { background: var(--secondary); }
.step-dot.create { background: var(--primary); }
.step-info { flex: 1; }
.step-op { font-size: 0.72rem; font-weight: 600; }
.step-detail { font-size: 0.62rem; color: var(--text-muted); font-family: var(--mono); }
.step-delete { padding: 2px 6px; font-size: 0.62rem; color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-family: var(--font); }
.step-delete:hover { color: var(--red); border-color: rgba(255,107,107,0.2); }

.sql-pre { padding: 12px; font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); max-height: 200px; overflow: auto; white-space: pre-wrap; }

.empty-state { padding: 20px; text-align: center; font-size: 0.82rem; color: var(--text-muted); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
