/* Custom styles to complement Tailwind CSS */

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Custom scrollbar for dark mode */
.dark ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

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

/* Toggle switch custom styling */
input[type="checkbox"]:checked + div {
  background-color: #2563eb;
}

input[type="checkbox"]:checked + div::after {
  transform: translateX(1.5rem);
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Code blocks */
code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.dark code {
  background-color: rgba(255, 255, 255, 0.1);
}

/* JSON textarea styling */
textarea[spellcheck="false"] {
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  line-height: 1.5;
}

/* Color picker swatch hover effect */
.cursor-pointer:hover {
  opacity: 0.8;
}

/* Animation for status messages */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Pickr color picker dark mode adjustments */
.dark .pcr-app {
  background: #1f2937;
  border-color: #374151;
}

.dark .pcr-app .pcr-interaction input {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}

/* Form section spacing */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Smooth color transitions */
[style*="background-color"] {
  transition: background-color 0.2s ease;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* FilePond dark mode adjustments */
.dark .filepond--root {
  background-color: #1f2937;
}

.dark .filepond--panel-root {
  background-color: #374151;
  border-color: #4b5563;
}

.dark .filepond--drop-label {
  color: #d1d5db;
}

.dark .filepond--label-action {
  color: #60a5fa;
}

.dark .filepond--item {
  background-color: #374151;
}

.dark .filepond--file {
  background-color: #4b5563;
  color: #f9fafb;
}
