
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --text: #c9d1d9;
  --box: #161b22;
  --border: #30363d;
  --accent: #58a6ff;
}

:root[data-theme='light'] {
  --bg: #f4f6fa;
  --text: #1c1e21;
  --box: #ffffff;
  --border: #d0d7de;
  --accent: #2563eb;
}

h1, h2 {
  margin-bottom: 10px;
  color: var(--accent);
}

#stats-box, #domain-box, table, #domain-stats th, #domain-stats td,
#navbar, #navbar button {
  background: var(--box);
  color: var(--text);
  border-color: var(--border);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 5px #00000010;
}

th {
  background-color: var(--box);
  color: var(--accent);
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background-color: #f0f4ff22;
}

button, #navbar button {
  background-color: var(--accent);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}
button:hover {
  background-color: #1e4ed8;
}

#stats-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#stats-box, #domain-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  flex: 1;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.green-dot {
  width: 10px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
}

.red-dot {
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  display: inline-block;
}

#navbar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.navbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

#theme-toggle {
  position: fixed;
  top: 12px;
  right: 20px;
  background: var(--border);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
}
#theme-toggle:hover {
  background: #444c56;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 14px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 6px;
  }

  #stats-container {
    flex-direction: column;
  }

  button {
    width: 100%;
    font-size: 16px;
  }
}

.table-wrapper {
  overflow-x: auto;
}
