/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  border: 1px solid #d8d8d8;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  padding: 8px 12px;
  text-align: left;
}

th {
  background-color: #f3f3f3;
  font-weight: bold;
}

/* ===== Center image utility ===== */
.center-img {
  text-align: center;
}

/* ===== Buttons (auto-upgrade all <button>) ===== */
button {
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  background: linear-gradient(135deg, #5aa0f2, #4689d1);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35),
              0 4px 10px rgba(0, 0, 0, 0.15);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dark mode tweak */
@media (prefers-color-scheme: dark) {
  button {
    background: linear-gradient(135deg, #3c8ce7, #2b6cb0);
  }
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5 {
  font-family: system-ui, sans-serif;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

/* ===== Paragraphs & Links ===== */
p, a, label, summary, details, div, option, input, select {
  font-family: system-ui, sans-serif;
}

p, summary, details, input, select {
  font-size: 1rem;
}

a {
  font-size: 1.1rem;
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Counter ===== */
#counter {
  font-size: 2em;
  font-weight: bold;
}

/* ===== Form Elements ===== */
input, select {
  border-radius: 12px;
  border: 3px solid #d8d8d8;
  padding: 6px;
  margin: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover, select:hover {
  border-color: #b3b3b3;
  background-color: #f7f7f7;
}

input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

option {
  font-size: 0.9rem;
  padding: 4px;
}
