/* QR Generator - Modern Tailwind-Inspired Design */

/* Base styles */
.qr-ui { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
}

/* QR Generator Container - Modern layout */
.qr-generator-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.qr-type-nav-container {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px 8px;
  margin: 0;
}

.qr-content-sections {
  padding: 0;
  margin: 0;
}

/* Type Navigation - Enhanced with Tailwind-inspired design */
.qr-type-nav {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
}

.qr-type-btn {
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  white-space: nowrap;
  min-width: fit-content;
}

.qr-type-btn:hover {
  color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
}

.qr-type-btn.active {
  color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.qr-type-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* Cards - Modern design */












/* Hide scrollbar but keep functionality */
.overflow-x-auto::-webkit-scrollbar {
  height: 4px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}







/* Quick Download Buttons */
.quick-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-download-btn {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.quick-download-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}





/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .qr-generator-container {
    background: #1f2937;
    border-color: #374151;
  }
  
  .qr-type-nav-container {
    background: #111827;
    border-color: #374151;
  }
  
  .compact-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .tab-nav {
    background: #111827;
    border-color: #374151;
  }
  
  .tab-btn {
    color: #9ca3af;
  }
  
  .tab-btn:hover {
    color: #d1d5db;
    background: #374151;
  }
  
  .tab-btn.active {
    color: #60a5fa;
    background: #1f2937;
    border-bottom-color: #60a5fa;
  }
  
  .compact-input,
  .compact-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .compact-input:focus,
  .compact-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  }
  
  .qr-preview-compact {
    background: #374151;
    border-color: #4b5563;
  }
  
  .qr-preview-compact:hover {
    background: #4b5563;
    border-color: #6b7280;
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Utility classes */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; }
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-transform { transition-property: transform; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-gray-700:hover { color: #374151; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6; }

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Grid system */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Object utilities */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-8 { top: 2rem; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.translate-y-0 { --tw-translate-y: 0px; }
.translate-y-1 { --tw-translate-y: 0.25rem; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

/* Z-index */
.z-10 { z-index: 10; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* User select */
.select-none { user-select: none; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Min width/height */
.min-w-fit { min-width: fit-content; }
.min-h-screen { min-height: 100vh; }

/* Max width/height */
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Text utilities */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* List utilities */
.list-none { list-style-type: none; }

/* Appearance */
.appearance-none { appearance: none; }

/* Background utilities */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.from-gray-50 { --tw-gradient-from: #f9fafb; --tw-gradient-to: rgba(249, 250, 251, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-white { --tw-gradient-from: #ffffff; --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-to: rgba(239, 246, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-green-500 { --tw-gradient-from: #10b981; --tw-gradient-to: rgba(16, 185, 129, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-to: rgba(37, 99, 235, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.via-white { --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), #ffffff, var(--tw-gradient-to); }

.to-blue-50 { --tw-gradient-to: #eff6ff; }
.to-green-600 { --tw-gradient-to: #059669; }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }

/* Hover gradient utilities */
.hover\:from-green-600:hover { --tw-gradient-from: #059669; --tw-gradient-to: rgba(5, 150, 105, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-blue-700:hover { --tw-gradient-to: #1d4ed8; }

/* Mix blend mode */
.mix-blend-multiply { mix-blend-mode: multiply; }

/* Filter utilities */
.filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
.blur-xl { --tw-blur: blur(24px); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* Animation utilities */
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* Container utilities */
.container { width: 100%; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Hover lift effect */
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Text gradient */
.text-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }



/* Textarea styling */
textarea.compact-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

/* File input styling */
input[type="file"].compact-input {
  padding: 8px 12px;
  cursor: pointer;
}

input[type="file"].compact-input::-webkit-file-upload-button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}

input[type="file"].compact-input::-webkit-file-upload-button:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Datetime input styling */
input[type="datetime-local"].compact-input {
  font-family: inherit;
}

/* Grid utilities for forms */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}





/* Three-Column Layout */
.qr-main-content {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 0;
  min-height: 600px;
}

.qr-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 20px 0;
  overflow-y: auto;
}

.qr-content-area {
  background: #ffffff;
  padding: 0;
  overflow-y: auto;
}

.qr-preview-sidebar {
  background: #f8fafc;
  border-left: 1px solid #e5e7eb;
  padding: 20px;
  overflow-y: auto;
}

/* Sidebar Navigation */
.qr-type-sidebar h3 {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0 20px;
}

.qr-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.qr-sidebar-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.qr-sidebar-btn.active {
  background: #eff6ff;
  color: #3b82f6;
  border-right: 3px solid #3b82f6;
}

.qr-sidebar-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.qr-sidebar-text {
  flex: 1;
}

/* Preview Sidebar */
.qr-preview-container h3 {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.qr-preview-area {
  background: #ffffff;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
}

.qr-preview-placeholder {
  text-align: center;
}

.qr-preview-placeholder svg {
  color: #9ca3af;
  margin: 0 auto 12px;
}

.qr-preview-placeholder p:first-of-type {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.qr-preview-placeholder p:last-of-type {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.4;
}

/* Download Options in Sidebar */
.qr-download-options h4 {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.qr-download-options .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qr-download-options span {
  color: #6b7280;
  font-size: 12px;
}

.qr-download-options select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  background: #ffffff;
}

.qr-download-options button {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.qr-download-options button:hover {
  background: #059669;
}

/* Responsive Design for Three-Column Layout */
@media (max-width: 1200px) {
  .qr-main-content {
    grid-template-columns: 220px 1fr 280px;
  }
  
  .qr-sidebar {
    padding: 16px 0;
  }
  
  .qr-preview-sidebar {
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .qr-main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  
  .qr-sidebar {
    order: 1;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    overflow-x: auto;
  }
  
  .qr-type-sidebar {
    display: flex;
    gap: 8px;
    padding: 0 16px;
  }
  
  .qr-type-sidebar h3 {
    display: none;
  }
  
  .qr-sidebar-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    min-width: 80px;
    text-align: center;
    border-radius: 8px;
  }
  
  .qr-sidebar-btn.active {
    border-right: none;
    border-bottom: 3px solid #3b82f6;
  }
  
  .qr-content-area {
    order: 2;
    padding: 0;
  }
  
  .qr-preview-sidebar {
    order: 3;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
  }
  
  .qr-preview-area {
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .qr-main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  
  .qr-sidebar {
    padding: 12px 0;
  }
  
  .qr-type-sidebar {
    padding: 0 12px;
    gap: 6px;
  }
  
  .qr-sidebar-btn {
    padding: 6px 8px;
    min-width: 70px;
    font-size: 12px;
  }
  
  .qr-sidebar-icon {
    font-size: 16px;
  }
  
  .qr-preview-sidebar {
    padding: 12px;
  }
  
  .qr-preview-area {
    min-height: 120px;
    padding: 16px;
  }
  
  .qr-preview-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
  
  .qr-preview-placeholder p:first-of-type {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .qr-preview-placeholder p:last-of-type {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .qr-sidebar {
    padding: 8px 0;
  }
  
  .qr-type-sidebar {
    padding: 0 8px;
    gap: 4px;
  }
  
  .qr-sidebar-btn {
    padding: 4px 6px;
    min-width: 60px;
    font-size: 11px;
  }
  
  .qr-sidebar-icon {
    font-size: 14px;
  }
  
  .qr-preview-sidebar {
    padding: 8px;
  }
  
  .qr-preview-area {
    min-height: 100px;
    padding: 12px;
  }
  
  .qr-preview-placeholder svg {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }
  
  .qr-preview-placeholder p:first-of-type {
    font-size: 11px;
  }
  
  .qr-preview-placeholder p:last-of-type {
    font-size: 9px;
  }
}

/* Enhanced sidebar scrolling */
.qr-sidebar::-webkit-scrollbar {
  width: 4px;
}

.qr-sidebar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.qr-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

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

/* Sidebar button animations */
.qr-sidebar-btn {
  position: relative;
  overflow: hidden;
}

.qr-sidebar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.qr-sidebar-btn:hover::before {
  left: 100%;
}

/* Active state enhancements */
.qr-sidebar-btn.active {
  position: relative;
}

.qr-sidebar-btn.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #3b82f6;
  border-radius: 2px 0 0 2px;
}

/* Preview area enhancements */
.qr-preview-area {
  transition: all 0.3s ease;
}

.qr-preview-area:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* Download options enhancements */
.qr-download-options select {
  transition: all 0.2s ease;
}

.qr-download-options select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.qr-download-options button {
  transition: all 0.2s ease;
}

.qr-download-options button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.qr-download-options button:active {
  transform: translateY(0);
}



/* Loading states */
.compact-btn.loading {
  position: relative;
  color: transparent;
}

.compact-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



/* File input enhancements */
input[type="file"].compact-input {
  position: relative;
  overflow: hidden;
}

input[type="file"].compact-input::before {
  content: 'Choose File';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}

input[type="file"].compact-input:hover::before {
  background: #e5e7eb;
  border-color: #9ca3af;
}

input[type="file"].compact-input:focus::before {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced select styling */
.compact-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

/* Enhanced color picker */
.color-picker-compact {
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-picker-compact:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced textarea */
textarea.compact-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}

textarea.compact-input:focus {
  min-height: 100px;
}

/* Enhanced datetime inputs */
input[type="datetime-local"].compact-input {
  font-family: inherit;
  cursor: pointer;
}

input[type="datetime-local"].compact-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="datetime-local"].compact-input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Enhanced responsive design */
@media (max-width: 640px) {
  .form-section {
    padding: 0;
  }
  
  .compact-card {
    padding: 12px;
  }
  
  .download-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .quick-download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}













/* ===== QR CONTENT SECTION SPECIFIC STYLES ===== */

/* QRFY-like body cards */
.qr-ui {
  max-width: 1100px;
  margin: 0 auto;
}

/* Compact card styling */
.compact-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 1rem;
}

.compact-card .p-4 {
  padding: 1rem;
}

/* Section title with badge */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.section-title .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
}

/* Enhanced tab navigation */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-nav .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tab-nav .tab-btn.active {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.tab-nav .tab-btn:hover:not(.active) {
  background: #f3f4f6;
  color: #1f2937;
}

/* Enhanced compact button */
.compact-btn {
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.compact-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

/* Sticky positioning for right column */
.lg\:col-span-1 .compact-card.sticky,
.right-col .compact-card.sticky {
  position: sticky;
  top: 96px;
}

/* Enhanced QR preview */
.qr-preview-compact {
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qr-preview-compact canvas {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-preview-compact:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

/* Enhanced download controls */
.download-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.download-controls > div {
  display: flex;
  flex-direction: column;
}

.download-controls label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Enhanced download button */
.download-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.download-btn:hover:not(:disabled) {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.download-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Enhanced compact select */
.compact-select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
  width: 100%;
  cursor: pointer;
}

.compact-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Enhanced compact input */
.compact-input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
  width: 100%;
}

.compact-input::placeholder {
  color: #9ca3af;
}

.compact-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Grid layout enhancements */
.qr-ui .grid {
  gap: 1rem;
}

/* Two-column layout */
.qr-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .qr-two-col {
    grid-template-columns: 1.6fr 1fr;
  }
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Force 2-column builder grid at large screens */
@media (min-width: 1024px) {
  .qr-ui .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1rem;
  }

  .qr-ui .lg\:col-span-2 {
    grid-column: auto;
  }

  .qr-ui .lg\:col-span-1 {
    grid-column: auto;
  }
}

/* Enhanced frame options */
.frame-option-compact {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f9fafb;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.frame-option-compact:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.frame-option-compact.selected {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.frame-option-compact img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.frame-option-compact .text-xs {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
}

/* Frame container horizontal scroll */
.frame-option-compact:first-child {
  margin-left: 0;
}

.frame-option-compact:last-child {
  margin-right: 0;
}

.frame-option-compact + .frame-option-compact {
  margin-left: 12px;
}

/* Enhanced color picker */
.color-picker-compact {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  transition: all 0.2s ease;
}

.color-picker-compact:hover {
  border-color: #4f46e5;
  transform: scale(1.05);
}

.color-picker-compact::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-compact::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Enhanced tab content */
.tab-content {
  display: none;
    opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  }

.tab-content.active {
  display: block;
    opacity: 1;
    transform: translateY(0);
  }

/* Enhanced form sections */
.form-section {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.form-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.form-section.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

/* Opacity transitions for button states */
.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

/* Enhanced QR Type Button Styles */
.qr-type-btn {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
  transition: all 0.2s ease;
}

.qr-type-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.qr-type-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.qr-type-btn.active:hover {
  background: #4338ca;
  border-color: #4338ca;
}

/* ===== RESPONSIVE DESIGN ENHANCEMENTS ===== */

/* Mobile-first responsive design */
@media (max-width: 640px) {
  .qr-ui {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .compact-card {
    border-radius: 8px;
    margin-bottom: 0.75rem;
  }
  
  .compact-card .p-4 {
    padding: 0.75rem;
  }
  
  .tab-nav {
    gap: 0.125rem;
    padding: 0.125rem;
    border-radius: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-nav .tab-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    min-width: auto;
    flex-shrink: 0;
  }
  
  .compact-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .download-controls {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .frame-option-compact {
    min-width: 60px;
    padding: 0.375rem;
  }
  
  .frame-option-compact img {
    width: 24px;
    height: 24px;
  }
  
  .frame-option-compact .text-xs {
    font-size: 10px;
  }
  
  .color-picker-compact {
  width: 32px;
  height: 32px;
  }
  
  .qr-preview-compact {
    min-height: 180px;
    padding: 0.75rem;
  }
  
  /* Mobile-specific layout fixes */
  .qr-two-col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .left-col {
    gap: 0.75rem;
  }
  
  .right-col .compact-card.sticky {
    position: relative;
    top: auto;
  }
  
  /* Fix frame options scrolling on mobile */
  .frame-option-compact + .frame-option-compact {
    margin-left: 8px;
  }
  
  /* Ensure proper spacing on mobile */
  .space-y-3 > * + * {
    margin-top: 0.75rem;
  }
  
  /* Fix input sizing on mobile */
  .compact-input,
  .compact-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.75rem;
  }
  
  /* Fix button sizing on mobile */
  .compact-btn {
    min-height: 44px; /* Touch-friendly button height */
  }
  
  /* Fix tab content spacing on mobile */
  .tab-content {
    padding: 0.75rem 0;
  }
  
  /* Fix form section spacing on mobile */
  .form-section.active {
    margin-bottom: 1rem;
  }
  
  /* Fix badge sizing on mobile */
  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Fix section title on mobile */
  .section-title {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  /* Fix download button on mobile */
  .download-btn {
    min-height: 44px;
    font-size: 0.875rem;
  }
  
  /* Fix color picker on mobile */
  .color-picker-compact {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Fix frame options container */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .overflow-x-auto::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .qr-ui {
    padding: 0 0.25rem;
  }
  
  .compact-card .p-4 {
    padding: 0.5rem;
  }
  
  .tab-nav {
    padding: 0.125rem;
    gap: 0.125rem;
  }
  
  .tab-nav .tab-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.6875rem;
  }
  
  .compact-btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  .frame-option-compact {
    min-width: 50px;
    padding: 0.25rem;
  }
  
  .frame-option-compact img {
    width: 20px;
    height: 20px;
  }
  
  .frame-option-compact .text-xs {
    font-size: 9px;
  }
  
  .color-picker-compact {
    width: 28px;
    height: 28px;
  }
  
  .qr-preview-compact {
    min-height: 160px;
    padding: 0.5rem;
  }
  
  /* Fix spacing for very small screens */
  .space-y-3 > * + * {
    margin-top: 0.5rem;
  }
  
  .left-col {
    gap: 0.5rem;
  }
  
  .qr-two-col {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .qr-ui {
    padding: 0 1rem;
  }
  
  .compact-card {
    border-radius: 12px;
  }
  
  .compact-card .p-4 {
    padding: 0.875rem;
  }
  
  .tab-nav .tab-btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  .compact-btn {
    padding: 0.5625rem 0.875rem;
  }
  
  .frame-option-compact {
    min-width: 70px;
    padding: 0.4375rem;
  }
  
  .frame-option-compact img {
    width: 28px;
    height: 28px;
  }
  
  .qr-preview-compact {
    min-height: 200px;
  }
  
  /* Tablet-specific fixes */
  .qr-two-col {
    gap: 1rem;
  }
  
  .left-col {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .qr-two-col {
    gap: 0.75rem;
  }
  
  .left-col {
    gap: 0.75rem;
  }
  
  .right-col .compact-card.sticky {
    position: relative;
    top: auto;
  }
  
  .frame-option-compact + .frame-option-compact {
    margin-left: 8px;
  }
  
  /* Fix grid layout on tablets */
  .download-controls {
    gap: 0.75rem;
  }
  
  /* Ensure proper spacing on medium screens */
  .compact-card {
    margin-bottom: 0.875rem;
  }
}

@media (max-width: 1280px) {
  .qr-ui {
    max-width: 1000px;
  }
}

@media (min-width: 1280px) {
  .qr-ui {
    max-width: 1200px;
  }
}

@media (min-width: 1536px) {
  .qr-ui {
    max-width: 1400px;
  }
}

/* ===== MOBILE-SPECIFIC LAYOUT FIXES ===== */

/* Fix horizontal scrolling issues on mobile */
@media (max-width: 768px) {
  .tab-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  
  /* Ensure frame options scroll properly */
  .overflow-x-auto {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .overflow-x-auto::-webkit-scrollbar {
    display: none;
  }
  
  /* Fix sticky positioning on mobile */
  .sticky {
    position: relative !important;
    top: auto !important;
  }
  
  /* Fix grid layouts on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix spacing on mobile */
  .space-y-3 > * + * {
    margin-top: 0.75rem;
  }
  
  /* Fix button groups on mobile */
  .flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* Fix input groups on mobile */
  .flex.items-center.space-x-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .flex.items-center.space-x-2 > * {
    margin-left: 0 !important;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */

@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .compact-btn,
  .download-btn,
  .tab-btn,
  .frame-option-compact,
  .color-picker-compact {
    min-height: 44px;
    min-width: 44px;
  }
  
  .compact-input,
  .compact-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Increase touch targets */
  .tab-nav .tab-btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  .frame-option-compact {
    min-height: 60px;
    min-width: 70px;
  }
  
  /* Fix scrolling on touch devices */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== ORIENTATION SPECIFIC FIXES ===== */

@media (max-width: 768px) and (orientation: landscape) {
  /* Landscape mobile fixes */
  .qr-ui {
    padding: 0 0.5rem;
  }
  
  .compact-card .p-4 {
    padding: 0.5rem;
  }
  
  .qr-preview-compact {
    min-height: 150px;
  }
  
  .tab-nav .tab-btn {
    padding: 0.375rem 0.5rem;
  }
  
  .compact-btn {
    padding: 0.5rem 0.75rem;
  }
}

/* ===== SAFE AREA SUPPORT FOR NOTCHED DEVICES ===== */

@supports (padding: max(0px)) {
  .qr-ui {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }
  
  @media (max-width: 640px) {
    .qr-ui {
      padding-left: max(0.25rem, env(safe-area-inset-left));
      padding-right: max(0.25rem, env(safe-area-inset-right));
    }
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus indicators */
.compact-btn:focus,
.download-btn:focus,
.compact-input:focus,
.compact-select:focus,
.tab-btn:focus,
.frame-option-compact:focus,
.color-picker-compact:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .compact-card {
    border-width: 2px;
  }
  
  .tab-nav .tab-btn.active {
    border: 2px solid #4338ca;
  }
  
  .frame-option-compact.selected {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .compact-btn,
  .download-btn,
  .tab-btn,
  .frame-option-compact,
  .color-picker-compact,
  .form-section,
  .tab-content {
    transition: none;
  }
  
  .compact-btn:hover,
  .download-btn:hover:not(:disabled) {
    transform: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .compact-card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
  
  .tab-nav,
  .compact-btn,
  .download-btn {
    display: none;
  }
  
  .qr-preview-compact {
    border: 1px solid #000;
    background: #fff;
  }
}

/* ===== ADDITIONAL MOBILE LAYOUT FIXES ===== */

/* Fix for very small screens */
@media (max-width: 375px) {
  .qr-ui {
    padding: 0 0.125rem;
  }
  
  .compact-card .p-4 {
    padding: 0.375rem;
  }
  
  .tab-nav {
    padding: 0.125rem;
    gap: 0.125rem;
  }
  
  .tab-nav .tab-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.625rem;
    min-width: 60px;
  }
  
  .compact-btn {
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .frame-option-compact {
    min-width: 45px;
    padding: 0.25rem;
  }
  
  .frame-option-compact img {
    width: 18px;
    height: 18px;
  }
  
  .frame-option-compact .text-xs {
    font-size: 8px;
  }
  
  .color-picker-compact {
    width: 24px;
    height: 24px;
  }
  
  .qr-preview-compact {
    min-height: 140px;
    padding: 0.375rem;
  }
  
  /* Fix spacing for very small screens */
  .space-y-3 > * + * {
    margin-top: 0.375rem;
  }
  
  .left-col {
    gap: 0.375rem;
  }
  
  .qr-two-col {
    gap: 0.375rem;
  }
  
  /* Fix badge and title sizing */
  .badge {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.375rem;
  }
  
  .section-title {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }
  
  /* Fix input sizing */
  .compact-input,
  .compact-select {
    font-size: 16px;
    padding: 0.5rem 0.625rem;
    min-height: 40px;
  }
  
  /* Fix button sizing */
  .compact-btn,
  .download-btn {
    min-height: 40px;
    font-size: 0.8125rem;
  }
}

/* Fix for iPhone SE and similar small devices */
@media (max-width: 414px) and (max-height: 896px) {
  .qr-preview-compact {
    min-height: 160px;
  }
  
  .compact-card {
    margin-bottom: 0.5rem;
  }
  
  .left-col {
    gap: 0.625rem;
  }
  
  .qr-two-col {
    gap: 0.625rem;
  }
}

/* Fix for landscape orientation on mobile */
@media (max-width: 896px) and (orientation: landscape) {
  .qr-ui {
    padding: 0 0.75rem;
  }
  
  .compact-card .p-4 {
    padding: 0.625rem;
  }
  
  .qr-preview-compact {
    min-height: 120px;
  }
  
  .tab-nav .tab-btn {
    padding: 0.5rem 0.75rem;
  }
  
  .compact-btn {
    padding: 0.625rem 0.875rem;
  }
  
  /* Adjust spacing for landscape */
  .left-col {
    gap: 0.75rem;
  }
  
  .qr-two-col {
    gap: 0.75rem;
  }
}

/* Fix for devices with high pixel density */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .compact-input,
  .compact-select,
  .compact-btn,
  .download-btn {
    -webkit-appearance: none;
    appearance: none;
  }
  
  .compact-input:focus,
  .compact-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
  }
}

/* Fix for devices with notches */
@media (max-width: 768px) {
  .qr-ui {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* Fix for ultra-wide mobile devices */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .qr-ui {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .compact-card .p-4 {
    padding: 1rem;
  }
  
  .qr-preview-compact {
    min-height: 250px;
  }
}

/* Fix for foldable devices */
@media (min-width: 280px) and (max-width: 653px) {
  .qr-ui {
    padding: 0 0.5rem;
  }
  
  .compact-card .p-4 {
    padding: 0.75rem;
  }
  
  .tab-nav {
    gap: 0.25rem;
    padding: 0.25rem;
  }
  
  .tab-nav .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .compact-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .frame-option-compact {
    min-width: 65px;
    padding: 0.375rem;
  }
  
  .frame-option-compact img {
    width: 26px;
    height: 26px;
  }
  
  .frame-option-compact .text-xs {
    font-size: 10px;
  }
  
  .color-picker-compact {
    width: 36px;
    height: 36px;
  }
  
  .qr-preview-compact {
    min-height: 180px;
    padding: 0.75rem;
  }
  
  .left-col {
    gap: 0.75rem;
  }
  
  .qr-two-col {
    gap: 0.75rem;
  }
}