/* Custom styles for the application */

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success animation */
.success-ring {
  animation: ring 0.5s ease-out;
}

@keyframes ring {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Copy button feedback */
.copy-success {
  background-color: #10b981 !important;
  color: white !important;
}

/* Text area custom scrollbar */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Transition for buttons */
button {
  transition: all 0.2s ease;
}

/* Custom focus styles */
.focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-ring:focus {
  outline-color: #3b82f6;
}

/* API Key input styles */
#apiKeyInput {
  font-family: 'Courier New', monospace;
}

#apiKeyInput:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Status message animations */
#apiKeyStatus {
  animation: fadeIn 0.3s ease-in;
}

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