/* Custom animations and styles */

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

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
}

/* Code block styling */
pre code {
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Hover effects */
button:active {
  transform: scale(0.98);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Mobile sidebar overlay */
@media (max-width: 1023px) {
  aside.fixed {
    background: rgba(0, 0, 0, 0.5);
  }
  
  aside.fixed > nav {
    background: white;
  }
  
  .dark aside.fixed > nav {
    background: #111827;
  }
}

/* Print styles */
@media print {
  header, footer, aside, button {
    display: none !important;
  }
  
  main {
    max-width: 100% !important;
  }
}