/* Custom styles for DocuConvert */

/* Smooth scrolling */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#overlay-loader.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Progress bar animation */
@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

.progress-animate {
  animation: progressBar 2s ease-out;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Custom focus styles */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

/* File upload drag and drop styles */
.drag-over {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Code syntax highlighting */
.code-block {
  background: #1f2937;
  color: #10b981;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Table responsive styles */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 14px;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 8px 12px;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .bg-gray-50 {
    background: white !important;
  }
}
