@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #10151c;
  --panel: #171e27;
  --panel-border: #263140;
  --text: #e7ecf2;
  --text-dim: #8a97a6;
  --amber: #e8912c;
  --green: #4caf6e;
  --red: #e05a5a;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans', sans-serif; min-height: 100vh; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--amber); font-size: 22px; }
.brand-name { font-family: 'IBM Plex Mono', monospace; font-weight: 700; letter-spacing: 0.1em; font-size: 14px; }

/* ---------- Login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 40px 36px; width: 340px; text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 4px; }
.login-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 24px; }
.login-card input { width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--panel-border); background: #0d1218; color: var(--text); font-size: 14px; margin-bottom: 12px; }
.login-card button { width: 100%; }
.error-text { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--panel-border); }

/* ---------- Buttons ---------- */
button { cursor: pointer; border: none; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 13.5px; border-radius: 6px; padding: 10px 18px; }
button:hover { opacity: 0.88; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--amber); color: #1a1206; }
.btn-secondary { background: #232d39; color: var(--text); border: 1px solid var(--panel-border); }

/* ---------- Settings panel ---------- */
.settings-panel { background: var(--panel); border-bottom: 1px solid var(--panel-border); padding: 20px 28px; }
.settings-panel h3 { margin: 0 0 4px; font-size: 15px; }
.settings-row { display: flex; gap: 10px; margin-top: 12px; }
.settings-row input { flex: 1; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--panel-border); background: #0d1218; color: var(--text); font-size: 13.5px; }
.hidden { display: none !important; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--panel-border); background: var(--panel); }
.tab-btn { background: transparent; color: var(--text-dim); border-radius: 0; padding: 14px 18px; font-size: 13.5px; border-bottom: 2px solid transparent; }
.tab-btn:hover { color: var(--text); opacity: 1; }
.tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- Main ---------- */
main { padding: 24px 28px 60px; max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.section-header h2 { margin: 0; font-size: 17px; }
.upload-hint { color: var(--text-dim); font-size: 12.5px; margin: 4px 0 16px; }
.upload-result { color: var(--amber); font-size: 12.5px; font-weight: 600; margin-top: 8px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--panel-border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--panel-border); white-space: nowrap; background: var(--panel); }
tbody td { padding: 11px 14px; font-size: 13px; white-space: nowrap; border-bottom: 1px solid #1c2530; }
tbody tr:hover { background: #141b23; }

.empty-state { color: var(--text-dim); text-align: center; padding: 50px 0; font-size: 14px; }
