::-webkit-scrollbar {
  width: 9px;
  height: 11px;
  background: var(--sidebar-bg-color, #f8f9fa);
}

.thin-scrollbar::-webkit-scrollbar {
  width: 8px !important;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-color, #c4c4c4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover-color, #a6a6a6);
}

.dark {
  --sidebar-bg-color: #1f2937;
  --scrollbar-thumb-color: #374151;
  --scrollbar-thumb-hover-color: #4b5563;
}

/* Light scroll ul mode styles */
ul::-webkit-scrollbar {
  width: 10px;
}

ul::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

ul::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

ul::-webkit-scrollbar-track {
  background-color: #f9fafb;
  border-radius: 3px;
}

.dark ul::-webkit-scrollbar-thumb {
  background-color: #4a5568;
}

.dark ul::-webkit-scrollbar-thumb:hover {
  background-color: #718096;
}

.dark ul::-webkit-scrollbar-track {
  background-color: #1f2937;
}

/* Light mode scrollbars for horizontal and vertical */
.relative.overflow-x-auto::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.relative.overflow-x-auto::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.relative.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

.relative.overflow-x-auto::-webkit-scrollbar-track {
  background-color: #f9fafb;
  border-radius: 3px;
}

.dark .relative.overflow-x-auto::-webkit-scrollbar-thumb {
  background-color: #4a5568;
}

.dark .relative.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background-color: #718096;
}

.dark .relative.overflow-x-auto::-webkit-scrollbar-track {
  background-color: #1f2937;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active {
  -webkit-text-fill-color: #e5e7eb;
  -webkit-box-shadow: 0 0 0 1000px #2b3443 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.loader {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #666666;
  opacity: 0.7;
  filter: alpha(opacity=70);
  z-index: 30001;
}
.loader-gif {
  position: absolute;
  width: 180px;
  top: 40%;
  left: 55%;
}

@media screen and (max-width: 614px) {
  .loader-gif {
    position: absolute;
    top: 40%;
    left: 18%;
  }
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.tbody-message {
  padding: 1rem;
  font-size: 1em;
  font-weight: 600;
  text-align: justify;
  vertical-align: middle;
}

.refresh-icon {
  color: currentColor;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.refresh-icon:hover {
  color: #007bff;
  cursor: pointer;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-icon {
  animation: spin 1s linear infinite;
  transform-origin: center;
  color: #007bff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
