.header-container {
  display: flex;
  /* Enables Flexbox */
  justify-content: space-between;
  /* Spaces the children evenly with space between */
  align-items: center;
  /* Aligns items vertically in the center */
  padding: 10px;
  /* Optional: Adds some padding around */
}

/* Optional: Styling to visualize the layout */
.header-container {
  border: 2px solid #000;
  background-color: rgb(18, 199, 139);
  /* Adds border to the container */
}

.header-left,
.header-right {
  /* Apply styling for your headers */
  font-weight: bold;
  /* Example styling */
}

.header-right > a {
  padding-left: 5px;
}

.header-left,
.header-right {
  padding: 5px;
  background-color: lightgrey;
  /* Adds background color to the header elements */
}

.spacer {
  flex-grow: 1;
  /* Takes up all available space */
}

.container {
  border: 1px solid #ccc !important;
}

/* Spinner styles */
.spinner {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  background:
    linear-gradient(0deg, rgb(0 0 0/50%) 30%, #0000 0 70%, rgb(0 0 0/100%) 0)
      50%/8% 100%,
    linear-gradient(90deg, rgb(0 0 0/25%) 30%, #0000 0 70%, rgb(0 0 0/75%) 0)
      50%/100% 8%;
  background-repeat: no-repeat;
  animation: s3 1s infinite steps(12);
}
.spinner::before,
.spinner::after {
  content: "";
  grid-area: 1/1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.915;
  transform: rotate(30deg);
}
.spinner::after {
  opacity: 0.83;
  transform: rotate(60deg);
}

@keyframes s3 {
  100% {
    transform: rotate(1turn);
  }
}

.spinner .htmx-request {
  opacity: 1;
}

.spinner.htmx-request {
  opacity: 1;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .button-overlay {
  opacity: 1;
}

.button-overlay button {
  margin: 0 5px;
  padding: 10px 20px;
  background-color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-overlay button:hover {
  background-color: #f0f0f0;
}

.no-animation-checkbox {
  transition: none !important; /* Disable all transitions */
  animation: none !important; /* Disable all animations */
}

tr.htmx-swapping td {
  opacity: 0;
  transition: opacity 1s ease-out;
}