/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color, #ffffff);
  color: var(--text-color, #000000);
}

/* Full-width and full-height table styles */
table {
  width: 100%;
  height: 100vh;
  border-collapse: collapse;
  overflow-y: auto;
  display: block;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

tbody {
  display: block;
  height: calc(100vh - 50px); /* Adjust height to account for header */
  overflow-y: auto;
}

thead, tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Dark mode styles */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
}

[data-theme="dark"] th {
  background-color: #333;
}

[data-theme="dark"] th, [data-theme="dark"] td {
  border-color: #555;
}

button {
  margin: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}