@keyframes spin {
    from {
      transform: rotate(0);
    }
    to {
      transform: rotate(360deg);
    }
  }
  #alerts {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: auto;
    position: absolute;
    top: 4rem;
    right: 1rem;
    z-index: 9999;
  }
  #alerts > * {
    margin-bottom: 0.5rem;
  }
  .text-loader {
    border-radius: 0.25rem;
    background-color: lightsteelblue;
    padding: 0.5rem 1rem;
    display: none;
    opacity: 0;
    box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.25);
  }
  .text-loader[data-dash-is-loading="true"] {
    display: block;
    animation: fadein 0.15s 0.5s forwards;
  }
  .text-loader::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 8px;
    border: 2px solid #333;
    border-top-color: transparent;
    box-sizing: border-box;
    animation: spin 0.5s linear infinite;
    margin-left: 0.5rem;
    display: inline-block;
  }
  @keyframes fadein {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  code {
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    display: block;
    padding: 0.15rem 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
  }
  .alert {
    box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.25);
  }
