body {
  background-color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #5b6168;
  padding: 40px;
}

.htmx-logo {
  font-size: 110%;
}

.htmx-logo b {
  color: rgb(51, 102, 204);
}

h1 {
  color: #2b3138;
  font-size: 28px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fefefe;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
}

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

th {
  background-color: #1b2128;
  color: #fefefe;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

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

a {
  color: #028afe;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.footer-link {
  margin-top: 16px;
  display: inline-block;
}

hr {
  margin: 64px 12px;
}

label {
  font-weight: 600;
  color: #2b3138;
  margin-right: 6px;
}

div > div {
  margin-bottom: 10px;
  font-size: 15px;
  color: #5b6168;
}

button.btn.primary {
  background-color: #028afe;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button.btn.primary:hover {
  background-color: #0272d3;
}

button.btn.primary:active {
  transform: scale(0.98);
}

button.btn.danger {
  background-color: #d9534f;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

button.btn.danger:hover {
  background-color: #c9302c;
}

button.btn.danger:active {
  transform: scale(0.98);
}

table + input {
    margin-top: 16px;
}

div[hx-target="this"] {
  background-color: #fefefe;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
}

form {
  background-color: #fefefe;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
  max-width: 500px;
}

form .form-group,
form > div {
  margin-bottom: 15px;
}

form label {
  display: block;
  font-weight: 600;
  color: #2b3138;
  margin-bottom: 6px;
  font-size: 14px;
}

form input[type="text"],
form input[type="email"] {
  width: calc(100% - 26px);
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #2b3138;
  background-color: #ffffff;
  transition: border 0.2s ease-in-out;
}

form input:focus {
  border-color: #028afe;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 138, 254, 0.1);
}

form .btn {
  background-color: #028afe;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

form .btn:hover {
  background-color: #0272d3;
}

form .btn:active {
  transform: scale(0.98);
}

code:not(code[class*="language-"]) {
  background: #3465a41f;
  border-radius: 2px;
  padding: 2px 5px;
}

pre[class*="language-"]  {
  overflow-x: scroll !important;
  border-radius: 0 !important;
}

pre[class|="language"] {
  line-height: 1.3;
  padding: .5rem;
  margin: .5rem 0;
  border-radius: .25rem;
  color: lightgray;
}

.tabs {
  display: inline-flex;
  background-color: transparent;
  padding: 0 12px;
  margin-top: 10px;
  margin-bottom: 0px;
  gap: 4px;
}

.tab {
  padding: 10px 16px;
  background-color: #e9e9e9; /* soft light background for unselected tabs */
  border: 1px solid #d0d0d0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #5b6168;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tab:hover {
  background-color: #dcdcdc;
}

.tab[aria-selected="true"] {
  background-color: #fefefe;
  color: #2b3138;
  border-color: #e9e9e9;
  border-bottom: 1px solid #fefefe; /* seamless join with content */
  z-index: 1;
  position: relative;
  bottom: -1px;
  margin-top: -2px;
}

.tabs-container {
  background-color: #fefefe;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.tab-content {
  display: none;
  padding: 20px;
  border-top: 1px solid #e9e9e9;
}

.tab-content.active {
  display: block;
}

td a {
  cursor: pointer;
}