:root {
  --bg: #0f1226;
  --card: #171a33;
  --text: #e7e9ff;
  --muted: #a7abcf;
  --accent: #6a7dff;
  --accent2: #4ce0c1;
  --danger: #ff6b6b;
  --border: #2b2f55;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, #1a1f45, transparent), radial-gradient(1000px 800px at 90% 0%, #14254b, transparent), var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
.app-header, .app-footer { text-align: center; padding: 24px 16px; }
.app-header h1 { margin: 0 0 8px; font-size: 1.8rem; }
.app-header p { margin: 0; color: var(--muted); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 8px 16px 0; }
.tab {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.tab.active { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(76,224,193,0.25) inset; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 16px; flex: 1; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35); backdrop-filter: blur(8px); margin-top: 12px;
}

.dropzone {
  position: relative; border: 2px dashed var(--border); border-radius: 12px;
  padding: 28px; text-align: center; transition: border-color .2s ease, background .2s ease;
  background: rgba(255,255,255,0.02);
}
.dropzone.dragover { border-color: var(--accent2); background: rgba(76,224,193,0.08); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-content .icon { font-size: 2rem; margin-bottom: 8px; }
.dz-content .browse { color: var(--accent); text-decoration: underline; cursor: pointer; }

.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.btn {
  border: 1px solid var(--border); background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b0f22; padding: 12px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.file-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.file-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.file-item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .meta { color: var(--muted); font-size: 0.85rem; }

.status { margin-top: 12px; min-height: 24px; color: var(--muted); }
.status.error { color: var(--danger); }
.small { color: var(--muted); font-size: 0.85rem; }