
/* Scrollbar width */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f0f0f000;
  border-radius: 6px;
}

/* Thumb (the handle) */
::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}


/* Hide spinner in WebKit browsers */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* hide browser auto fill bg and color */
input:-webkit-autofill {
  /* Force full transparency */
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s; /* Trick to override autofill */

  /* Optional - inherit text color */
  -webkit-text-fill-color: inherit !important;

}

.glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.253);
  border: 1px solid rgba(255, 255, 255, 0.295);
}
.glow {
  box-shadow: 0 0 20px rgba(58, 201, 170, 0.4);
}

@keyframes pop-spin {
  0% {
    transform: scale(0.6) rotate(-20deg);
    opacity: 0;
    filter: blur(2px);
  }
  60% {
    transform: scale(1.08) rotate(8deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }
}
.animate-pop-spin {
  transform-origin: center;
  animation: pop-spin 700ms 0.5s cubic-bezier(.2,.9,.3,1) both;
}

@keyframes spin-slow-delayed {
  0% {
    transform: rotateY(0deg);
  }
  10% {
    transform: rotateY(180deg);
  }
  20% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.animate-spin-slow-delayed {
  animation: spin-slow-delayed 3s ease-in-out infinite;
  animation-delay: 0.6s;
  transform-style: preserve-3d;
}

/* sidebar animation */
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.sidebar-enter {
  animation: slideIn 0.3s ease-out;
}
.active-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* loader style */ 
.spinnerContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 56px;
  height: 56px;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #299fff;
  animation: tri-spinner 1s infinite linear;
}

.spinner::before,
.spinner::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: tri-spinner 2s infinite;
}

.spinner::after {
  margin: 8px;
  animation-duration: 3s;
}

@keyframes tri-spinner {
  100% {
    transform: rotate(1turn);
  }
}

.loader {
  color: #4a4a4a;
  font-family: "Poppins",sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #299fff;
  animation: cycle-words 5s infinite;
}

@keyframes cycle-words {
  10% {
    -webkit-transform: translateY(-105%);
    transform: translateY(-105%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-205%);
    transform: translateY(-205%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-305%);
    transform: translateY(-305%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-405%);
    transform: translateY(-405%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}


/* table scroller style */
.scroll-btn {
  position: fixed;
  bottom: 12%; /* use bottom instead of top for better mobile placement */
  right: 55px; /* default distance from the right */
  cursor: pointer;
  padding: 4px 8px;
  width: 35px;
  height: 35px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 50%;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 30;
}

#scrollRightBtn {
  right: 15px; /* placed to the far right */
}

/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
  .scroll-btn {
      bottom: 8%;
      right: 70px;
      width: 30px;
      height: 30px;
  }

  #scrollRightBtn {
      right: 20px;
  }
}

.scroll-btn.disabled {
  background-color: #bfbfbf; /* Mild color for disabled state */
  cursor: not-allowed;
  opacity: 0.7;
}