* {
  --font-color-default: #b3b3b3;
  --font-color_title: white;
  --border-bottom: #2f313c59;
  --background-darker: #121223;
}

.nothing {
  position: fixed;
  bottom: 9999999px;
  opacity: 0;
  max-width: 0;
  max-height: 0;
  user-select: none;
}

.container-needing_servers-list {
  padding: 0.5rem 1rem;
}

.container-needing_server-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#close {
  position: absolute;
  top: -9px;
  right: -6px;
  background: #a50e0e;
  color: white;
  padding: 0.01rem 0.4rem;
  border-radius: 50%;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}

div#serverlist {
  padding-block: 1rem;
}

.container-needing_server {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  gap: 1rem;
}

.container-needing_server div:first-child span {
  max-width: 130px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container-needing_server-name span {
  color: var(--font-color-default);
  font-weight: 400;
}

.container-needing_server a {
  background: orangered;
  color: white;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-weight: 500;
}

.container-needing_header {
  color: var(--font-color_title);
  border-bottom: 1px solid var(--border-bottom);
  padding: 0.8rem 1.2rem 1.2rem;
  display: block;
  width: -webkit-fill-available;
  font-weight: 400;
}

.container-needing_header b {
  background: orangered;
  padding: 0.44rem 0.8rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  color: white;
}

/* NUEVA POSICIÓN Y ANIMACIÓN TIPO TOAST */

.container-needing {
  position: fixed;
  bottom: 1rem; /* esquina inferior izquierda */
  right: 1rem;
  top: auto;
  left: auto;
  padding-top: 0.5rem;
  background: var(--background-darker);
  border: 1px solid var(--border-bottom);
  border-radius: 10px;
  min-width: 350px;

  /* aspecto “toast” */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);

  /* estado inicial: oculto fuera de pantalla */
  opacity: 0;
  transform: translateX(120%) translateY(10px);
  z-index: -999;
  pointer-events: none;
}

/* cuando haya datos: mostrar toast con animación de entrada */
.container-needing.visible {
  z-index: 9999;
  pointer-events: auto;
  animation: toastInLeft 0.35s ease-out forwards;
}

/* cuando se cierre o no haya datos: animación de salida */
.container-needing.hiding {
  animation: toastOutLeft 0.3s ease-in forwards;
}

/* mantienes tus pulsos de borde tal cual */

.container-needing::before {
  content: '';
  width: 100%;
  height: 100%;
  border: 1px solid rgb(239, 239, 239);
  border-radius: 8px;
  position: absolute;
  z-index: -1;
  left: 0px;
  top: 0px;
  animation: 1s ease 0s infinite normal none running qSqPj;
}

.container-needing::after {
  content: '';
  width: 100%;
  height: 100%;
  border: 1px solid rgb(99, 100, 118);
  border-radius: 8px;
  position: absolute;
  z-index: -1;
  left: 0px;
  top: 0px;
  animation: 1s ease 0s infinite normal none running hzxLXL;
}

/* NUEVOS keyframes tipo “toast” similares a SweetAlert2 */

@keyframes toastInLeft {
  0% {
    opacity: 0;
    transform: translateX(120%) translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes toastOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(120%) translateY(10px) scale(0.95);
  }
}

/* tus keyframes originales se quedan igual */

@keyframes qSqPj {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  90% {
    transform: scale(1.1025);
  }
  91% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes hzxLXL {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  90% {
    transform: scale(1.075);
  }
  91% {
    transform: scale(1);
    opacity: 0;
  }
}
/* CSS FIN ITEM NEEDING */
