body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
  padding: 1em;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode table {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

h1 {
  color: #2e7d32;
}

h2.hot-title {
  color: #d32f2f;
}

h2.cold-title {
  color: #1565c0;
}

label,
select {
  margin-right: 1em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

th,
td {
  padding: 0.6em;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #eee;
}

.dark-mode th {
  background-color: #2b2b2b;
}

button {
  padding: 0.5em 1em;
  margin-top: 0.5em;
}

.section {
  margin-top: 2em;
}

.pill {
  display: inline-block;
  padding: 0.5em 0.8em;
  margin: 0.3em;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  border: 2px solid;
}

.pill.hot {
  background-color: #ffcdd2;
  color: #b71c1c;
  border-color: #ef5350;
}

.pill.cold {
  background-color: #bbdefb;
  color: #0d47a1;
  border-color: #64b5f6;
}

.toggle-btn {
  display: inline-block;
  margin-top: 1em;
  cursor: pointer;
  color: #1565c0;
  text-decoration: underline;
}

.toggle-btn:hover {
  text-decoration: none;
}

.hidden {
  display: none;
}

/* All Draws Table: compact + scrollable */
.all-draw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.85em;
  line-height: 1.2em;
}

.all-draw-table th,
.all-draw-table td {
  width: 50px;
  padding: 0.4em 0.3em;
  border: 1px solid #ccc;
  text-align: center;
}

.all-draw-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}
.dark-mode .all-draw-table tbody tr:nth-child(odd) {
  background-color: #1a1a1a;
}

.dark-mode .all-draw-table th,
.dark-mode .all-draw-table td {
  border-color: #555;
}

#allDraws {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 0.5em;
  margin-top: 1em;
}

footer a {
  color: #1565c0;
}

.dark-toggle {
  float: right;
  margin-bottom: 1em;
  padding: 0.4em 0.8em;
  font-size: 0.9em;
}
