body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  flex: 1;
}

h1 {
  color: #333;
}

a {
    color: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

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

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

th[colspan]:not([colspan="1"]) {
    text-align: center;
}

th[colspan] {
    border-bottom: none;
    background-color: #e1e1e1;
}

tr:hover {
    background-color: #f9f9f9;
}

header {
  background-color: #333;
  color: white;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: larger;
  padding-inline-start: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #555;
}

a:focus {
  outline: 2px solid #4CAF50;
}

footer {
  font-size: 14px;
  color: #555;
  border-top: 5px solid #ddd;
}

td:not(:last-child), th:not(:last-child) {
  border-right: 1px solid #e1e1e1;
}

/* Toggle Switch Styling */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }
  h1 {
    color: #ffffff;
  }
  header {
    background-color: #1f1f1f;
    color: #ffffff;
  }
  table {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05);
  }
  th, td {
    border-bottom: 1px solid #333;
  }
  th {
    background-color: #2a2a2a;
    color: #f0f0f0;
  }
  th[colspan] {
    background-color: #333;
  }
  tr:hover {
    background-color: #242424;
  }
  footer {
    color: #aaa;
    border-top: 5px solid #333;
  }
  .slider {
    background-color: #555;
  }
  input:checked + .slider {
    background-color: #4CAF50;
  }
  .nav-links a {
    color: #ddd;
  }
  .nav-links a:hover {
    background-color: #333;
  }

  td:not(:last-child), th:not(:last-child) {
    border-right: 1px solid #333;
  }
}

.table-container {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  header {
    padding: 10px;
    font-size: 1rem;
  }

  nav {
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    gap: 10px;
    font-size: 1rem;
    width: 100%;
    padding-inline-start: 0;
    margin: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px;
  }

  table, th, td {
    font-size: 0.9rem;
  }

  th, td {
    padding: 8px 10px;
  }

  .toggle-wrapper {
    align-items: flex-start;
    gap: 8px;
  }

  h1 {
    font-size: 1.75rem;
  }
}

#coordinator {
  transition: all 0.3s;
  border-radius: 4px;
  
  &:hover {
    cursor: pointer;
    background-color: #555;
  }
}
ul#sbtc-contracts {
  display:inline-block;
  padding: 0px;
}

ul#sbtc-contracts li {
  display:inline;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #808080;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  position: relative;
}

.info-icon:hover::after,
.info-icon:active::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  white-space: normal;
  z-index: 10;
  font-size: 12px;
  margin-bottom: 5px;
  width: max-content;
  max-width: 200px;
  text-align: center;
}

/* Essential mobile support */
@media (max-width: 768px) {
  .info-icon {
    width: 18px;
    height: 18px;
  }
  
  .info-icon:active::after {
    max-width: 80vw;
  }
}
