/* Progress bar custom styles */
.progress-bar {
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #a855f7, #7c3aed);
  transition: width 0.3s ease;
}

.progress-fill-default {
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

/* Switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3b82f6;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Loading animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Hide/show elements */
.hidden {
  display: none !important;
}

/* Horizontal scroll for models */
#models-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

#models-container::-webkit-scrollbar {
  height: 8px;
}

#models-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#models-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#models-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Additional token input styles */
.token-input-wrapper {
  position: relative;
}

.remove-account-btn {
  transition: all 0.2s ease;
}

.remove-account-btn:hover {
  background-color: #fee;
  border-color: #f87171;
}

.additional-token-input {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Account divider */
.account-divider {
  border-top: 1px dashed #d1d5db;
  margin: 0.5rem 0;
}
