/* --- WME-themed style for FancyIndex --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --wme-blue: #1463b8;
  --wme-blue-dk: #0e4d90;
  --wme-accent: #1976d2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #dfe3ea;
  --bg: #ffffff;

  /* Card */
  --card-border: #dfe3ea;
  --card-radius: 6px;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);

  /* Hover */
  --hover-shadow: 0 0 6px rgba(223, 227, 234, 0.9); /* matches card border color */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f8fafc;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.wme-bar { background: #1E1E28; color: #fff; width: 100%; }
.wme-wrap { max-width: 1200px; margin: 0 auto; padding: 18px 20px; }
.wme-top { display: flex; align-items: center; justify-content: center; }
.wme-top .wme-logo { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
.wme-top .wme-logo img { height: 28px; display: block; }

/* Hero */
.wme-hero { background: #eef2f7; border-bottom: 1px solid var(--line); }
.wme-hero .wme-wrap { padding: 22px 20px; text-align: center; }
.wme-hero h1 { margin: 0 0 6px; font-size: 28px; color: var(--wme-blue-dk); }
.wme-hero p { margin: 0; color: var(--muted); }

/* Main */
main { display: flex; justify-content: center; padding: 24px 20px 16px; }
.content-box {
  width: 100%;
  max-width: 1200px;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--bg);
  box-shadow: var(--card-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 70vh;
  overflow: auto;
}

/* Breadcrumb */
.wme-crumb { width: 100%; font-size: 14px; color: var(--muted); margin-bottom: 10px; text-align: left; }

/* Table */
.content-box table {
  width: auto;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0 4px; /* small gap between rows for shadow */
}

.content-box table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  font-size: 14px;
}

.content-box table tbody td {
  padding: 6px 10px;
  font-size: 14px;
  vertical-align: middle;
  background: var(--bg);
}

/* Icon alignment */
.wme-ico {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 1;
  margin-right: 6px;
  vertical-align: middle;
}

/* Hover effect - smooth shadow & border color */
.content-box table tbody tr td {
  border: 1px solid transparent; /* keeps space for border to avoid jump */
  border-radius: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.content-box table tbody tr:hover td {
  background: var(--bg);
  box-shadow: var(--hover-shadow);
  border-color: var(--card-border); /* smoothly fades in */
}

.content-box table tbody tr:hover a {
  color: var(--wme-accent);
  text-decoration: none;
}

.content-box table tbody tr:hover .wme-ico {
  color: var(--wme-accent) !important;
}

/* Links */
.content-box table tbody td a {
  color: var(--wme-blue-dk);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.content-box table tbody td a:hover {
  text-decoration: underline;
}

/* Footer */
.wme-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: auto;
}
.wme-foot .wme-wrap { padding: 14px 20px; font-size: 13px; }
