:root {
  --primary-color: #2B9A87;
  --secondary-color: #001453;

  /* Main theme colors */
  --bs-primary: #2B9A87 !important;
  /* Primary brand color */
  --bs-link-color: #2B9A87 !important;
  --bs-text-primary: #2B9A87;

  --font-size: 16px;
}

.btn-primary:hover {
  background-color: #2B9A87 !important;
  border-color: #2B9A87 !important;
}

.brand-color {
  color: var(--primary-color) !important;
}

.btn-primary2,
.btn-secondary2,
.btn-brand,
.btn-grad-brand,
.btn-grad-primary {
  padding: 0.25rem 1.25rem 0.35rem 1.25rem;
  color: #ffffff;
  border: none;
  background-size: 300% 300%;
  /* Larger background size for gradient animation */
  transition: background 0.5s ease-in-out;
  /* Smooth background transition */
}

/* Setting up keyframes for the gradient animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn-primary2 {
  background: linear-gradient(45deg, #001453, #001453);
}

.btn-primary2:hover {
  background: linear-gradient(45deg, rgb(0, 44.578313253, 185), rgb(0, 7.7108433735, 32));
  animation: gradientAnimation 8s ease infinite;
  color: #ffffff;
}

.btn-grad-primary {
  background-image: linear-gradient(to right, rgb(0, 44.578313253, 185) 0%, #001453 51%, rgb(0, 44.578313253, 185) 100%);
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: #ffffff;
  box-shadow: 0 0 20px #F1F1F4;
}

.btn-grad-primary:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary2 {
  background: linear-gradient(45deg, rgb(32, 85.734939759, 255), rgb(32, 85.734939759, 255));
}

.btn-secondary2:hover {
  background: linear-gradient(45deg, rgb(83, 124.4457831325, 255), rgb(0, 56.8674698795, 236));
  animation: gradientAnimation 8s ease infinite;
  color: #ffffff;
  animation: scaleUp 1s infinite;
}

.btn-brand {
  background: linear-gradient(45deg, #2B9A87, #2B9A87) !important;
}

.btn-brand:hover {
  background: linear-gradient(89deg, rgb(205.6896551724, 228.6637931034, 151.3362068966), rgb(140.8965517241, 181.0129310345, 45.9870689655), rgb(125.0689655172, 160.6788793103, 40.8211206897));
  animation: gradientAnimation 8s ease infinite;
  color: #ffffff;
  /* animation: scaleUp .6s infinite; */
}

.btn-grad-brand {
  background-image: linear-gradient(to right, rgb(125.0689655172, 160.6788793103, 40.8211206897) 0%, #2B9A87 51%, rgb(125.0689655172, 160.6788793103, 40.8211206897) 100%);
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: #ffffff;
  box-shadow: 0 0 20px #F1F1F4;
}

.btn-grad-brand:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #ffffff;
  text-decoration: none;
}

.btn-grad {
  background-image: linear-gradient(to right, rgb(0, 7.7108433735, 32) 0%, rgb(134, 163.156626506, 255) 51%, rgb(0, 7.7108433735, 32) 100%);
  margin: 10px;
  padding: 15px 45px;
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: #ffffff;
  box-shadow: 0 0 20px #F1F1F4;
  border-radius: 10px;
  display: block;
}

.btn-grad:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #ffffff;
  text-decoration: none;
}

.form-group {
  max-width: 24rem;
  /* Tailwind's max-w-sm */
  margin: 0 auto;
  width: 100%;
}

/* 
.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem; 
  font-weight: 500;
  color: $gray-700;
} */
/* Shared input/textarea styles */
.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #DBDFE9;
  /* border-gray-300 */
  border-radius: 0.75rem;
  /* rounded-xl */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  transition: all 0.15s ease-in-out;
  outline: none;
}

/* Focus state */
.form-input:focus,
.form-textarea:focus {
  border-color: #2B9A87;
  /* border-blue-500 */
  /* box-shadow: 0 0 0 2px rgba(167, 208, 70, 0.5); */
  box-shadow: none;
}

/* Validation messages */
.form-message {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.form-message.success {
  color: #17C653;
  /* text-green-600 */
}

.form-message.error {
  color: #F8285A;
  /* text-red-600 */
}

/* Error and success states */
.form-input.error,
.form-textarea.error {
  border-color: #F8285A;
  box-shadow: 0 0 0 2px rgba(248, 40, 90, 0.5);
}

.form-input.success,
.form-textarea.success {
  border-color: #2B9A87;
  box-shadow: 0 0 0 2px rgba(167, 208, 70, 0.5);
}

/* Textarea-specific */
.form-textarea {
  resize: vertical;
}

.nav-tabs {
  border-bottom: none;
  background-color: transparent;
}

.nav-tabs .nav-link {
  flex: 1;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.nav-tabs .nav-link.active {
  background-color: #ffffff;
  box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);
  font-weight: 600;
}

.ellipsis {
  white-space: nowrap;
  /* Prevents line breaks */
  overflow: hidden;
  /* Hides overflow content */
  text-overflow: ellipsis;
  /* Adds the "..." */
}

[data-bs-theme=dark] .nav-tabs .nav-link.active {
  background-color: #252F4A;
  color: #F9F9F9;
}

.tab-content {
  margin-top: 1rem;
}

.spinner {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Documentation sidebar */
#docs_sidebar {
  transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
  #docs_sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    background-color: #ffffff;
    z-index: 1050;
    transform: translateX(-100%);
    padding: 1rem;
    overflow-y: auto;
  }

  #docs_sidebar.open {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  table.table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  form.row {
    flex-direction: column;
  }
}

.question-handle {
  cursor: move;
}

/* Lead stage pipeline */
.lead-stages {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lead-stage {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: #F1F1F4;
  color: #4B5675;
  cursor: pointer;
}

.lead-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background-color: #DBDFE9;
  transform: translateY(-50%);
}

.lead-stage--completed {
  background-color: #2B9A87;
  color: #ffffff;
}

.lead-stage--completed:not(:last-child)::after {
  background-color: #2B9A87;
}

.lead-stage--current {
  background-color: #001453;
  color: #ffffff;
}

.lead-stage--current:not(:last-child)::after {
  background-color: #001453;
}

.lead-stage--lost {
  background-color: #F8285A;
  color: #ffffff;
}

.lead-stage--lost:not(:last-child)::after {
  background-color: #F8285A;
}

/* Hide scrollbars */
.hide-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.fv-plugins-bootstrap5:not(.fv-plugins-bootstrap5-form-inline) label~.fv-plugins-icon {
  top: 25px !important;
}

@media (min-width: 992px) {
  [data-kt-app-header-fixed="true"] .app-header {
    z-index: 104 !important;
  }
}