body {
  background-color: #121212;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin: 1rem 0;
}

h2 {
  color: #ffa500;
  border-bottom: 1px solid #333;
  padding-bottom: 0.25rem;
}

pre {
    background-color: #1c1c2c;
    color: #c0ffee;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.status-container {
    max-width: 900px;
    margin: auto;
    padding: 2em;
    background-color: #2a2a40;
    border-radius: 12px;
    box-shadow: 0 0 12px #000a;
}

select#groupFilter {
    padding: 0.4em 1em;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    background-color: #1f1f2e;
    color: #f0f0f0;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}
select#groupFilter:focus {
    outline: none;
    box-shadow: 0 0 6px #4b0082;
}

h1, h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.pill {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5em;
}

.pill.active { background-color: #28a745; color: white; }
.pill.inactive, .pill.failed { background-color: #dc3545; color: white; }
.pill.reloading, .pill.activating, .pill.deactivating { background-color: #ffc107; color: #000; }
.pill.unknown { background-color: #6c757d; color: white; }

.group {
  margin: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

table th,
table td {
    text-align: center;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: #222;
  color: #ffa500;
}

td {
  background-color: #1e1e1e;
}

td.host {
    text-align: left;
    font-family: monospace;
}

/* Base link style */
.host a {
  color: #63b3ed;       /* soft sky blue */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Visited links */
.host a:visited {
  color: #b794f4;       /* soft purple */
}

/* Hover links */
.host a:hover {
  color: #f6e05e;       /* yellow highlight */
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

/* Active (clicking) links */
.host a:active {
  color: #f56565;       /* red click */
}

.group-label {
    padding: 0.3em 0.6em;
    border-radius: 6px;
    font-size: 0.8em;
    text-transform: capitalize;
    font-weight: bold;
    color: white;
}

.group-label.nird-club:-core {
    background-color: #4b0082; /* Indigo */
}

.group-label.nird-club:-pb-home {
    background-color: #008080; /* Teal */
}

.group-label.external {
    background-color: #6c757d; /* Gray */
}

.group-label.cloudflare-dns {
    background-color: #f39c12; /* Orange */
}

.group-label.let's-encrypt {
    background-color: #2ecc71; /* Green */
}

.group-label.sandbox {
    background-color: #ffc107; /* Yellow */
}

.tz-pt {
  color: #90cdf4;  /* Pacific - soft blue */
  font-weight: bold;
}
.tz-et {
  color: #f6ad55;  /* Eastern - warm orange */
  font-weight: bold;
}
.tz-utc {
  color: #a0aec0;  /* UTC - muted gray */
  font-weight: bold;
}

.days-left {
  font-weight: bold;
  text-align: center;
}
.days-left.good {
  color: #9ae6b4; /* green */
}
.days-left.warn {
  color: #f6e05e; /* yellow */
}
.days-left.bad {
  color: #f56565; /* red */
}

.error {
  color: #ff5f5f;
  font-weight: bold;
}

.footer {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  color: #888;
}
