/* This CSS file can be used for any additional custom styles beyond Tailwind */
/* Primary color definition */
:root {
  --primary-color: #5D5CDE;
}

/* Dark mode variables */
[data-theme="dark"],
.dark {
  --bg-color: #1a202c;
  --text-color: #e2e8f0;
}

/* Additional custom styles can be added here if needed */

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Smooth transitions for interactive elements */
button, input, textarea {
  transition: all 0.2s ease-in-out;
}

/* Focus styles for better accessibility */
textarea:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 92, 222, 0.2);
}

/* Custom styling for example buttons */
.example-btn:active {
  transform: translateY(1px);
}

/* Styling for diagram container */
#mermaidOutput {
  min-height: 300px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #mermaidOutput {
    min-height: 200px;
  }
}

/* Animation for error message */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

#errorMessage.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}