.btn-primary {
  background-color: var(--custom-primary-color);
  border-color: var(--custom-primary-color);
  color: #fff; /* Text color on the button */
}

/* Apply hover effect to buttons */
.btn-primary:hover {
  background-color: var(--custom-primary-color-hover); /* Darken on hover */
  border-color: var(--custom-primary-color-hover);
}

/* Apply active and focus effects to buttons */
.btn-primary:active,
.btn-primary:focus {
  background-color: var(
    --custom-primary-color-focus
  ) !important; /* Lighten on click or focus */
  border-color: var(--custom-primary-color-focus) !important;
}

.btn {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  border-radius: 5px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  font-size: 1.25rem;
  height: 3rem;
  position: relative;
}

.btn-light {
  color: var(--custom-primary-color-text);
}

.dropdown-menu {
  border-radius: 0.5rem;
  cursor: pointer;
}
.dropdown-toggle::after {
  color: var(--custom-primary-color);
}

.btn.loading {
  color: transparent;
  pointer-events: none;
}

.btn.loading::before {
  content: "";
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  border: 2px solid var(--custom-background-primary-color);
  border-top-color: var(--custom-primary-color);
}

@keyframes spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 768px) {
  .btn {
    font-size: 1rem;
    padding: 0.85em 1em 0.4em;
  }
}
