/* ProDyn ProbeTools FancyIndex Theme */
:root {
  --bg:         #0d1117;
  --surface:    #161b22;
  --border:     #30363d;
  --accent:     #00c8ff;
  --accent-dim: #0090b8;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --link-color: #79c0ff;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-mark { font-size: 1.4rem; line-height: 1; color: var(--accent); opacity: 0.9; }
.brand-name { color: var(--text); }
.brand-sub  { color: var(--accent); }
.tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Main container ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  flex: 1;
  width: 100%;
}

/* ── FancyIndex: hide its default H1 path heading (we show brand instead) ── */
h1 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ── FancyIndex table: #list ── */
#list {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

#list thead tr {
  border-bottom: 1px solid var(--border);
}
#list thead th {
  text-align: left;
  padding: 0.45rem 0.8rem;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
#list thead th:nth-child(2) { text-align: right; }
#list thead th:nth-child(3) { text-align: right; }

/* sort arrows */
#list thead a {
  color: var(--text-muted);
  text-decoration: none;
}
#list thead a:hover { color: var(--accent); }

/* ── Rows ── */
#list tbody tr {
  border-bottom: 1px solid transparent;
  transition: background 0.1s;
}
#list tbody tr:hover {
  background: rgba(0, 200, 255, 0.06);
  border-bottom-color: var(--border);
}

#list td {
  padding: 0.55rem 0.8rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* File name column */
#list td.link { width: 55%; }
#list td.link a {
  color: var(--link-color);
  text-decoration: none;
}
#list td.link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Parent dir link */
#list td.link a[href="../"],
#list td.link a[href=".."] {
  color: var(--text-muted);
}

/* Size column */
#list td.size {
  width: 15%;
  text-align: right;
  color: var(--text-muted);
}

/* Date column */
#list td.date {
  width: 30%;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.80rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-sep { opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 600px) {
  #list { font-size: 0.78rem; }
  #list td.date { display: none; }
  #list thead th:nth-child(3) { display: none; }
}
