/* Minimal modern styling (no build step) */
:root{
  --bg:#0b1020;
  --card:#111831;
  --card2:#0f1730;
  --text:#e8eefc;
  --muted:#a8b3cf;
  --border:rgba(255,255,255,0.08);
  --accent:#7c5cff;
  --accent2:#2dd4bf;
  --danger:#ef4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 500px at 20% 0%, rgba(124,92,255,0.22), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(45,212,191,0.16), transparent 55%),
              var(--bg);
  color:var(--text);
}

.container{ max-width:1200px; margin:0 auto; padding:24px; }

.topbar{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,0.72);
  border-bottom: 1px solid var(--border);
  z-index:50;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; }
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,0.9), rgba(45,212,191,0.8));
  color:#0b1020;
  font-weight:800;
}
.title{ font-weight:800; letter-spacing:0.2px; }
.subtitle{ color:var(--muted); font-size:12px; margin-top:2px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 18px;
  margin:18px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.card h2{ margin:0 0 10px; font-size:18px; }
.card h3{ margin:18px 0 10px; font-size:16px; color:#dbe6ff; }

.muted{ color:var(--muted); }
.small{ font-size:12px; }
.mono{ font-family:var(--mono); }
hr{ border:0; border-top:1px solid var(--border); margin:18px 0; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.grid3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; }
@media (max-width: 900px){
  .grid2,.grid3{ grid-template-columns:1fr; }
  .topbar .container{ flex-direction:column; align-items:flex-start; gap:12px; }
}

.field label{ display:block; font-weight:600; margin-bottom:6px; }
input[type="file"], input[type="number"], input[type="text"]{
  width:100%;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text);
}
input[type="number"]{ appearance: textfield; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  background: rgba(255,255,255,0.04);
}
.btn:hover{ background: rgba(255,255,255,0.07); }
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: rgba(124,92,255,0.22); border-color: rgba(124,92,255,0.55); }
.btn-primary:hover{ background: rgba(124,92,255,0.30); }

.btn-accent{ background: rgba(45,212,191,0.16); border-color: rgba(45,212,191,0.55); }
.btn-accent:hover{ background: rgba(45,212,191,0.24); }

.btn-ghost{ background: rgba(255,255,255,0.03); }
.btn.disabled, .btn:disabled{ opacity:0.5; cursor:not-allowed; }

.tabs{ display:flex; gap:10px; margin-bottom:10px; }
.tab{
  background: rgba(255,255,255,0.03);
  border:1px solid var(--border);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.tab.active{ border-color: rgba(124,92,255,0.55); background: rgba(124,92,255,0.16); }

.tabpane{ display:none; }
.tabpane.active{ display:block; }

.toolbar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }

.tableWrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
  max-height: 420px;
  background: rgba(0,0,0,0.18);
}
.editTable{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
.editTable th, .editTable td{
  border-bottom:1px solid rgba(255,255,255,0.06);
  padding:8px 10px;
  white-space:nowrap;
}
.editTable th{
  position:sticky; top:0;
  background: rgba(17,24,49,0.92);
  z-index:2;
  text-align:left;
  font-size:13px;
}
.editTable td{
  font-size:13px;
  color: #eef3ff;
}
.editTable td[contenteditable="true"]{
  outline:none;
}
.editTable tr.selected td{
  background: rgba(124,92,255,0.14);
}

.runRow{ display:flex; gap:14px; align-items:center; margin-top:10px; flex-wrap:wrap; }

.hidden{ display:none; }

.resultsHeader{
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
  margin-bottom:10px;
}

.progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--border);
  overflow:hidden;
  margin: 10px 0 6px;
}
.progressBar{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(124,92,255,0.9), rgba(45,212,191,0.9));
}

.fileList{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:10px;
}
.fileCard{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,0.12);
  display:flex; justify-content:space-between; gap:10px; align-items:center;
}
.fileCard .name{ font-family:var(--mono); font-size:12px; }
.fileCard .meta{ font-size:12px; color:var(--muted); }
.fileCard .links{ display:flex; gap:8px; }

.previewGrid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap:14px;
  margin-top:10px;
}
.previewCard{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,0.12);
}
.previewCard .pTitle{ font-family:var(--mono); font-size:12px; color:#d9e3ff; margin-bottom:8px; }
.previewCard img{ max-width:100%; border-radius:12px; border:1px solid rgba(255,255,255,0.07); }
.previewCard iframe{ width:100%; height:380px; border:1px solid rgba(255,255,255,0.07); border-radius:12px; background:white; }

.footer{ padding: 10px 0 30px; }
