:root{
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  width: 100% !important;
  height: 100vh !important;
  font-family: var(--font-family) !important;
  overflow-y: scroll;
}

/* CSS to override browser autofill styles (e.g., remove white background) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--bs-text);
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px var(--background);
}

.btn {
  cursor: pointer !important;
  border-top-left-radius: 9999px !important;
  border-bottom-left-radius: 9999px !important;
  border-top-right-radius: 9999px !important;
  border-bottom-right-radius: 9999px !important;
  text-align: center;
  height: fit-content;
  font-family: var(--font-family) !important;
}
.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 8px;
  background-image: repeating-linear-gradient(
      45deg,
      transparent 0%,
      transparent 20%,
      rgba(255, 255, 255, 0.3) 20%,
      rgba(255, 255, 255, 0.3) 40%
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0%,
      transparent 20%,
      rgba(255, 255, 255, 0.3) 20%,
      rgba(255, 255, 255, 0.3) 40%
    );
  background-size: 200px 200px;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
  font-size: 1.5em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}

#alert-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 100%;
    max-width: 500px; /* Adjust as needed */
    padding: 0 15px;
}

#alert-container .alert {
    margin-bottom: 10px;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    background-color: rgba(var(--bs-body-bg-rgb), 0.85); /* Use theme background with transparency */
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);

    /* Animation */
    animation: slideInFromTop 0.5s ease-out forwards;
}

#alert-container .alert.fade.show {
    opacity: 1;
}

#alert-container .alert.fade {
    opacity: 1; /* Ensure it stays visible during the 5s */
}

#alert-container .alert.alert-dismissing {
    animation: slideOutToTop 0.5s ease-in forwards;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToTop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}
