.navbar-avatar {
  object-fit: cover;
  width: 32px;
  height: 32px;
  max-height: inherit !important;
  border-radius: 50%;
}

/* this removes bullets from the hover dropdown menu items when logged in */
.navbar-item li {
  list-style: none;
}

#profile-picture {
  display: flex;
  justify-content: center;
}

#profile-picture img.avatar {
  object-fit: cover;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

#profile-upload-holder {
  padding-top: 0.5em;
}

#profile-upload-holder input[type="file"] {
  display: none;
}

.progress-bar {
  background-color: var(--primary);
  width: 2px;
}

#progress-bar-message {
  color: var(--gray);
}

.add-loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: black;
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%, 100% {
    text-shadow: .25em 0 0 black, .5em 0 0 black;
  }
}

/* alpine.js cloak support */
[x-cloak] {
  display: none !important;
}

/* ensure htmx links use pointers */
a[hx-get] {
  cursor: pointer;
}

.h-100 {
  height: 100%;
}

.muted-link {
  color: hsl(0, 0%, 71%);
}

.muted-link:hover {
  color: hsl(0, 0%, 48%);
  text-decoration: underline;
}

/* this is the default class assigned to errors by django forms */
.errorlist {
  color: var(--danger);
}

img.socialicon {
  padding-right: 0.5em;
  max-width: 24px;
  max-height: 24px;
}

/* css loader https://loading.io/css/ */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

@charset "utf-8";


.popover-container {
  position: relative;
  display: inline-block;
}

.popover-content {
  display: block; /* Ensure it's always in the DOM */
  opacity: 0;
  position: absolute;
  bottom: 125%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* Start slightly below */
  background-color: var(--bs-dark);
  color: white;
  text-align: left;
  padding: 10px;
  border-radius: 4px;
  z-index: 1000;
  width: fit-content;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  white-space: nowrap;
  height: fit-content;
  transition: opacity 0.2s ease-in-out, transform 0.4s ease-in-out;
  pointer-events: none;
}

.pc-push-right {
  left: 60%;
}

.popover-content::after {
  content: "";
  position: absolute;
  top: 100%; /* Arrow points down */
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--bs-dark) transparent transparent transparent;
}

/* Show the popover */
.popover-container:hover .popover-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Move to final position */
}

/* Popover bottom */
.popover-bottom .popover-content {
  top: 125%; /* Position below the element */
  bottom: auto;
  transform: translateX(-50%) translateY(-10px); /* Start slightly above */
}

.popover-bottom .popover-content::after {
  top: auto;
  bottom: 100%; /* Arrow points up */
  border-color: transparent transparent #333 transparent;
}

.popover-bottom:hover .popover-content {
  transform: translateX(-50%) translateY(0); /* Move to final position */
}

.popover-left .popover-content {
  top: 50%; /* Center vertically */
  right: 125%; /* Position to the left of the element */
  left: auto;
  transform: translateY(-50%) translateX(10px); /* Start slightly to the right */
}

.popover-left .popover-content::after {
  top: 50%; /* Arrow is centered vertically */
  right: -10px; /* Position the arrow to the left edge */
  left: unset;
  transform: translateY(-50%);
  border-color: transparent transparent transparent #333; /* Arrow points left */
}

.popover-left:hover .popover-content {
  transform: translateY(-50%) translateX(0); /* Move to final position */
}
.popover-right .popover-content {
  top: 50%; /* Center vertically */
  left: 125%; /* Position to the right of the element */
  right: auto;
  transform: translateY(-50%) translateX(-10px); /* Start slightly to the left */
}

.popover-right .popover-content::after {
  top: 50%; /* Arrow is centered vertically */
  left: -10px; /* Position the arrow to the right edge */
  right: unset;
  transform: translateY(-50%);
  border-color: transparent #333 transparent transparent; /* Arrow points right */
}

.popover-right:hover .popover-content {
  transform: translateY(-50%) translateX(0); /* Move to final position */
}
@charset "utf-8";

