
    /* Performance optimized animations */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .animate-fade-in {
      animation: fadeIn 0.5s ease-out forwards;
    }
    
    /* Dark mode enhancements */
    .dark {
      --tw-bg-opacity: 1;
      background-color: rgb(15 23 42/var(--tw-bg-opacity));
      color: rgb(248 250 252/var(--tw-text-opacity));
    }
    
    .dark .bg-white {
      background-color: rgb(30 41 59/var(--tw-bg-opacity));
    }
    
    .dark .text-gray-800 {
      color: rgb(248 250 252/var(--tw-text-opacity));
    }
    
    .dark .text-gray-600 {
      color: rgb(203 213 225/var(--tw-text-opacity));
    }
    
    .dark .text-gray-500 {
      color: rgb(148 163 184/var(--tw-text-opacity));
    }
    
    .dark .text-gray-400 {
      color: rgb(100 116 139/var(--tw-text-opacity));
    }
    
    .dark .bg-gray-50 {
      background-color: rgb(15 23 42/var(--tw-bg-opacity));
    }
    
    .dark .file-drop-area {
      border-color: rgb(71 85 105/var(--tw-border-opacity));
      background-color: rgb(15 23 42/var(--tw-bg-opacity));
    }
    
    /* File drop area styling */
    .file-drop-area {
      border: 2px dashed #cbd5e1;
      border-radius: 1rem;
      transition: all 0.2s ease;
    }
    
    .file-drop-area.active {
      border-color: #3b82f6;
      background-color: rgba(59, 130, 246, 0.05);
    }
    
    .file-drop-area.dark.active {
      background-color: rgba(59, 130, 246, 0.1);
    }
    
    /* Progress bar */
    .progress-bar {
      height: 0.5rem;
      background-color: #e2e8f0;
      border-radius: 0.25rem;
      overflow: hidden;
    }
    
    .progress-bar-fill {
      height: 100%;
      background-color: #3b82f6;
      transition: width 0.3s ease;
    }
    
    /* Tooltip */
    .tooltip {
      position: relative;
      display: inline-block;
    }
    
    .tooltip:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
    }
    
    .tooltip-text {
      visibility: hidden;
      opacity: 0;
      transform: translateY(5px);
      transition: all 0.2s ease;
      position: absolute;
      z-index: 10;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background-color: #1e293b;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      font-size: 0.875rem;
      white-space: nowrap;
      pointer-events: none;
    }
    
    /* Responsive adjustments */
    @media (max-width: 640px) {
      .container {
        padding-left: 1rem;
        padding-right: 1rem;
      }
      
      .hero-title {
        font-size: 2rem;
        line-height: 2.5rem;
      }
      
      .feature-grid {
        grid-template-columns: 1fr;
      }
    }
    
    /* Print styles */
    @media print {
      .no-print {
        display: none !important;
      }
      
      body {
        background: white;
        color: black;
      }
      
      a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
      }
    }
    
    /* Focus styles for accessibility */
    :focus-visible {
      outline: 2px solid #3b82f6;
      outline-offset: 2px;
    }
    
    /* Aspect ratio containers */
    .aspect-ratio-box {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* 16:9 by default */
    }
    
    .aspect-ratio-box img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    
    /* Loading spinner */
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .loading-spinner {
      animation: spin 1s linear infinite;
    }
    
    /* Improved transitions */
    .smooth-transition {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Better button hover effects */
    .btn-hover-effect {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .btn-hover-effect:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    /* Improved form controls */
    input[type="range"] {
      -webkit-appearance: none;
      height: 6px;
      background: #e2e8f0;
      border-radius: 3px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      background: #3b82f6;
      border-radius: 50%;
      cursor: pointer;
    }
    
    /* Better focus states for form elements */
    input:focus, select:focus, textarea:focus, button:focus {
      ring: 2px;
      ring-color: #3b82f6;
      ring-opacity: 0.5;
    }
  