/* --------- BASE --------- */
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 16px;
  background: #0f1115; /* deep charcoal */
  color: #e6e6e6;
}

h1 {
  text-align: center;
  color: #f1f1f1;
  letter-spacing: 0.5px;
}

h2 {
  margin-top: 36px;
  color: #d0d4db;
}

/* --------- HEADER BAR --------- */
.header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.header-spacer {
  flex: 1;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.update-info {
  flex: 1;
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
}

/* Mobile: stack cleanly */
@media (max-width: 600px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
  }

  .update-info {
    text-align: center;
    white-space: normal;
  }
}


/* --------- TABLE --------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #161a22; /* graphite */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #262b36;
  text-align: center;
}

th {
  background: #1f2430;
  color: #cfd6e4;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

/* --------- ROWS --------- */
tbody tr:nth-child(even) {
  background: #141824;
}

tbody tr:hover {
  background: #1d2230;
}

/* --------- PRICE MOVEMENT --------- */
.up {
  color: #ff6b6b; /* soft coral red */
  font-weight: 600;
}

.down {
  color: #3ddc97; /* muted mint green */
  font-weight: 600;
}

.same {
  color: #c0c4cc;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 768px) {
  th, td {
    font-size: 13px;
    padding: 7px;
  }
}

/* --------- FOOTER --------- */
.footer {
  margin-top: 44px;
  font-size: 13px;
  color: #9aa0aa;
  text-align: center;
  opacity: 0.85;
}