#color-toolbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#color-toolbar::-webkit-scrollbar {
  width: 6px;
}

#color-toolbar::-webkit-scrollbar-track {
  background: transparent;
}

#color-toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#color-toolbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

#action-toolbar {
  z-index: 10;
}

.lang-btn {
  position: relative;
  overflow: hidden;
}

.lang-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.color-button.selected {
  outline: 3px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#render-window {
  width: 100%;
  height: 100%;
}

#color-picker-modal.show,
#settings-modal.show,
#export-modal.show,
#ai-prompt-modal.show {
  display: flex !important;
}

#color-picker-input {
  -webkit-appearance: none;
  appearance: none;
}

#color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

#color-picker-input::-webkit-color-swatch,
#color-picker-input::-moz-color-swatch {
  border: none;
  border-radius: 0.75rem;
}

.action-btn.selected {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.replace-color-option {
  transition: all 0.2s ease;
}

.replace-color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.replace-color-option.selected {
  outline: 3px solid #6366f1;
  outline-offset: 2px;
}

#startup-modal {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#mode-toggle-btn {
  transition: all 0.3s ease;
}
