/* Animation for copy message */
#copy-message {
  animation: fadeIn 0.3s ease-in;
}

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

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

/* Format button styling */
.btn-format {
  transition: all 0.2s ease;
}

/* Preset button hover effect */
.preset-btn {
  transition: all 0.2s ease;
}

.preset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preset-btn:active {
  transform: translateY(0);
}

/* Select and input focus effects */
select:focus,
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom checkbox styling */
input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

/* Statistics cards animation on update */
.bg-gray-100 {
  transition: all 0.3s ease;
}

/* Smooth scrollbar for textarea */
textarea::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .text-4xl {
    font-size: 2rem;
  }
}

/* Prose styling for blog content */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose h2 {
  color: #111827;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #1f2937;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose h4 {
  color: #374151;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

/* Configuration panel styling */
.bg-white {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Loading animation for generate button */
#generate-btn {
  position: relative;
}

#generate-btn:hover {
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}
