/* assets/style.css — minimalist light/dark theme */
:root {
  --bg: #0b0e14;
  --fg: #e6e6e6;
  --muted: #9aa3b2;
  --card: #0f1422;
  --line: rgba(255,255,255,.15);
  --accent: #00e0ff;
  --accent-2: #7c83ff;
  --btn-bg: #1a2235;
  --btn-fg: #e6e6e6;
  --btn-outline: transparent;
}
:root.light {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --card: #f5f7fb;
  --line: #d1d5db;
  --accent: #0369a1;
  --accent-2: #2563eb;
  --btn-bg: #e5e7eb;
  --btn-fg: #111827;
  --btn-outline: #e5e7eb;
}
* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin:0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
}
.topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top:0; background: var(--bg); z-index: 40;
}
.brand { display:flex; gap:12px; align-items:center; }
.logo { width:36px; height:36px; border-radius:12px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display:grid; place-items:center; font-weight:700; color:black; }
.titles h1 { margin:0; font-size: 20px; }
.subtitle { font-size: 12px; color: var(--muted); }
.controls { display:flex; gap:10px; align-items:center; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.search-box form { display:flex; gap:10px; flex-wrap: wrap; align-items:center; }
.search-box input[type=text] { flex: 1 1 340px; padding: 10px 12px; border-radius: 10px; border:1px solid var(--line); background:transparent; color:var(--fg); }
.hint { margin-top:10px; color: var(--muted); }

.btn { background: var(--btn-bg); border: 1px solid var(--line); color: var(--btn-fg); padding: 8px 12px; border-radius: 10px; cursor:pointer; }
.btn.primary { background: linear-gradient(135deg,var(--accent-2),var(--accent)); border: none; color: black; font-weight: 700; }
.btn.outline { background: var(--btn-outline); border:1px solid var(--line); }
.btn:disabled { opacity:.5; cursor:not-allowed; }

.switch { display:flex; align-items:center; gap:8px; color: var(--muted); }

.results .toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; gap:10px; flex-wrap:wrap;}
.results .toolbar input[type=search] { padding:8px 10px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--fg); }

.table-wrap { overflow:auto; border:1px solid var(--line); border-radius: 12px; }
table { width:100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { text-align:left; font-weight:600; font-size:13px; color: var(--muted); background: rgba(255,255,255,.03); position: sticky; top:0; }
tbody tr:hover { background: rgba(255,255,255,.03); }
.muted { color: var(--muted); text-align:center; }

.badge { display:inline-block; padding: 2px 6px; border-radius: 8px; font-size: 12px; border:1px solid var(--line); color:var(--muted); }

.details { background: rgba(0,0,0,.1); border-radius: 10px; padding: 10px; margin-top:8px; }
.details pre { white-space: pre-wrap; }

.pager { display:flex; gap:16px; align-items:center; justify-content:flex-end; padding-top:12px; }
.footer { text-align:center; color: var(--muted); padding: 30px 0; }

/* Light/dark toggle */
body.theme-auto {}
.crtsh-embed table { background: transparent; color: inherit; }
.crtsh-embed a { color: #7c83ff; }
