/* Instax Studio Pro - Custom Styles */

/* ========== Essential Fallback Styles ========== */
/* These ensure the app works even if Tailwind CDN fails to load */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Essential Layout Fallbacks */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

#shutter-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#print-area {
  display: none;
}

/* ========== Tooltips ========== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 6px 12px;
  background: rgba(17, 24, 39, 0.95);
  color: #FDF6E3;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(198, 167, 94, 0.2);
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

[data-tooltip]:hover::before {
  transform: translateX(-50%) translateY(-8px);
}

/* ========== Progress Bar ========== */
.progress-bar {
  height: 4px;
  background: rgba(198, 167, 94, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C6A75E, #d4b76a, #C6A75E);
  background-size: 200% 100%;
  animation: progressShimmer 1.5s infinite linear;
  transition: width 0.3s ease;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Skeleton Loading ========== */
.skeleton {
  background: linear-gradient(90deg, rgba(198, 167, 94, 0.1) 25%, rgba(198, 167, 94, 0.2) 50%, rgba(198, 167, 94, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Success/Error Indicators ========== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-indicator.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-indicator.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator.processing {
  background: rgba(198, 167, 94, 0.15);
  color: #C6A75E;
  border: 1px solid rgba(198, 167, 94, 0.3);
}

/* ========== Print Styles ========== */
@media print {
  body * {
    visibility: hidden !important;
  }
  #print-area, #print-area * {
    visibility: visible !important;
  }
  #print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes shutterFlash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes filmDevelop {
  0% { filter: brightness(2) contrast(0.5) saturate(0); }
  50% { filter: brightness(1.3) contrast(0.8) saturate(0.5); }
  100% { filter: brightness(1) contrast(1) saturate(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(198, 167, 94, 0.3); }
  50% { box-shadow: 0 0 20px rgba(198, 167, 94, 0.6); }
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}
.animate-film-develop {
  animation: filmDevelop 1.5s ease-out forwards;
}
.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
.animate-shutter-flash {
  animation: shutterFlash 0.5s ease-out forwards;
}

/* Toast Notification */
.toast {
  animation: toastIn 0.3s ease-out forwards;
}
.toast.toast-exit {
  animation: toastOut 0.3s ease-in forwards;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(198, 167, 94, 0.3);
  border-top-color: #C6A75E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(198, 167, 94, 0.15);
  transition: all 0.3s ease;
}

.glass:hover {
  border-color: rgba(198, 167, 94, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-light {
  background: rgba(253, 246, 227, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 246, 227, 0.1);
  transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #C6A75E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d4b76a; }

/* Range Slider Custom */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(198, 167, 94, 0.3);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #C6A75E;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #C6A75E;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Instax Frame Styles */
.instax-frame {
  background: white;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.3), 
    0 0 40px rgba(0,0,0,0.1),
    inset 0 0 60px rgba(0,0,0,0.02);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  border-radius: 3px;
}
.instax-frame:hover {
  transform: scale(1.02) rotate(0.5deg);
  box-shadow: 
    0 12px 40px rgba(0,0,0,0.4), 
    0 0 80px rgba(0,0,0,0.15),
    inset 0 0 60px rgba(0,0,0,0.02);
}

/* Film Dust Overlay */
.film-dust-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 0.5px, transparent 0.5px),
                    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.6) 0.3px, transparent 0.3px),
                    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.7) 0.4px, transparent 0.4px),
                    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.5) 0.6px, transparent 0.6px),
                    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.4) 0.3px, transparent 0.3px),
                    radial-gradient(circle at 55% 15%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px);
}

/* Date Stamp */
.date-stamp {
  font-family: 'Segment7Standard', 'Courier New', monospace;
  color: #ff6600;
  font-size: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 3px rgba(255, 102, 0, 0.5);
}

/* Caption */
.caption-text {
  font-family: 'Caveat', cursive;
  color: #333;
}

/* Drag & Drop Area */
.drop-zone {
  border: 2px dashed rgba(198, 167, 94, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  background: linear-gradient(135deg, rgba(198, 167, 94, 0.02) 0%, transparent 50%, rgba(198, 167, 94, 0.02) 100%);
}
.drop-zone:hover {
  border-color: rgba(198, 167, 94, 0.6);
  background: linear-gradient(135deg, rgba(198, 167, 94, 0.05) 0%, rgba(198, 167, 94, 0.02) 50%, rgba(198, 167, 94, 0.05) 100%);
}
.drop-zone.drag-over {
  border-color: #C6A75E;
  border-style: solid;
  background: rgba(198, 167, 94, 0.15);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(198, 167, 94, 0.3);
}

.drop-zone.drag-over::after {
  content: '📷 Drop your images here!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 167, 94, 0.1);
  color: #C6A75E;
  font-size: 14px;
  font-weight: 600;
  animation: dropzonePulse 1s infinite;
  border-radius: inherit;
}

@keyframes dropzonePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Thumbnail Grid */
.thumbnail {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}
.thumbnail:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(198, 167, 94, 0.35);
  z-index: 10;
}
.thumbnail.active {
  ring: 2px solid #C6A75E;
  box-shadow: 0 0 0 3px #C6A75E, 0 4px 16px rgba(198, 167, 94, 0.4);
  transform: scale(1.05);
}

.thumbnail.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #C6A75E;
  border-radius: inherit;
  animation: thumbnailPulse 2s infinite;
  pointer-events: none;
}

@keyframes thumbnailPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Remove button on thumbnails - visible on hover via Tailwind group */
.thumbnail .remove-btn {
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.thumbnail:hover .remove-btn {
  opacity: 1;
}

/* Filter Preset Button */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.filter-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(198, 167, 94, 0.25);
  border-color: rgba(198, 167, 94, 0.3);
}
.filter-btn.active {
  box-shadow: 0 0 0 2px #C6A75E, 0 0 20px rgba(198, 167, 94, 0.5);
  border-color: #C6A75E;
}

.filter-btn.active::before {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #C6A75E;
  color: #111827;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5;
}

/* Background Preset */
.bg-preset {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}
.bg-preset:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(198, 167, 94, 0.35);
  z-index: 5;
}
.bg-preset.active {
  box-shadow: 0 0 0 3px #C6A75E, 0 4px 12px rgba(198, 167, 94, 0.4);
  transform: scale(1.1);
}

.bg-preset.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 167, 94, 0.3);
  color: #111827;
  font-size: 14px;
  font-weight: bold;
  border-radius: inherit;
}

/* Mobile Bottom Bar */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 10px 16px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(198, 167, 94, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-bottom-bar button {
    flex: 1;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 10px;
  }
}

/* Collapsible Panel */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.collapsible-content.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* Collapse button */
[data-collapse] {
  transition: all 0.3s ease;
}

[data-collapse]:hover {
  color: #d4b76a;
}

[data-collapse] .collapse-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

/* Ambient Studio Gradient */
.studio-gradient {
  background: linear-gradient(135deg, #111827 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #111827 100%);
  background-size: 400% 400%;
  animation: ambientGradient 15s ease infinite;
}

@keyframes ambientGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Before/After Toggle */
.before-after-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
}

/* ========== Professional UI Enhancements ========== */

/* Smooth Focus States for Accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #C6A75E;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(198, 167, 94, 0.2);
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #C6A75E;
  color: #111827;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced Button Styles */
button {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ripple effect for primary action buttons only */
.btn-ripple,
button.bg-gold,
button.bg-yellow-700 {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after,
button.bg-gold::after,
button.bg-yellow-700::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1) translate(-50%, -50%);
  transform-origin: center;
}

.btn-ripple:focus:not(:active)::after,
button.bg-gold:focus:not(:active)::after,
button.bg-yellow-700:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 0.5;
  }
  100% {
    transform: scale(40) translate(-50%, -50%);
    opacity: 0;
  }
}

/* Smooth hover lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Professional Canvas Preview Shadow */
#preview-canvas {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

#preview-canvas:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Enhanced Frame Preview Container */
#frame-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

#frame-preview:hover {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(17, 24, 39, 0.8) 100%);
}

#frame-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#frame-preview img:hover {
  transform: scale(1.02);
}

/* Improve export dropdown visibility */
.group:hover > div:last-child {
  display: block !important;
}

/* Professional Selection Highlight */
.thumbnail.active,
.filter-btn.active,
.bg-preset.active {
  position: relative;
}

.thumbnail.active::after,
.filter-btn.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid #C6A75E;
  border-radius: inherit;
  pointer-events: none;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
  #left-panel {
    order: 2;
  }
  
  #preview-container {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  /* Stack header elements better on mobile */
  header .flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* Improve mobile toolbar */
  #left-panel section {
    margin-bottom: 0.75rem;
  }
  
  /* Better mobile button sizes */
  .filter-btn {
    min-width: 60px;
    padding: 0.5rem;
  }
  
  /* Mobile-friendly sliders */
  input[type="range"] {
    height: 8px;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
}

/* Smooth scrollbar for filter presets */
#filter-presets {
  scrollbar-width: thin;
  scrollbar-color: #C6A75E #1a1a2e;
}

#filter-presets::-webkit-scrollbar {
  height: 4px;
}

#filter-presets::-webkit-scrollbar-thumb {
  background: #C6A75E;
  border-radius: 2px;
}

/* Professional loading animation */
#loading-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);
}

#loading-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(198, 167, 94, 0.2);
  border-top-color: #C6A75E;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Better toast notifications */
.toast {
  max-width: 380px;
  word-wrap: break-word;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.toast-exit {
  animation: toastOut 0.3s ease-in forwards;
  transform-origin: right center;
}

/* Enhanced hover effects for tools */
[id$="-btn"]:hover,
[id^="rotate-"]:hover,
[id^="flip-"]:hover,
[id^="zoom-"]:hover {
  background-color: rgba(198, 167, 94, 0.2) !important;
}

/* Export dropdown enhanced */
.group > div:last-child {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.group:hover > div:last-child {
  opacity: 1;
  visibility: visible;
}

/* Better visual hierarchy for sections */
section.glass {
  position: relative;
}

section.glass h2 {
  position: relative;
  z-index: 1;
}

/* Subtle animation for image upload success */
@keyframes uploadSuccess {
  0% { background-color: transparent; }
  50% { background-color: rgba(198, 167, 94, 0.1); }
  100% { background-color: transparent; }
}

.upload-success {
  animation: uploadSuccess 0.6s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass {
    border-width: 2px;
  }
  
  button {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Light Mode Theme ========== */
body.light-mode {
  background: linear-gradient(135deg, #fdf6e3 0%, #f5f0e8 25%, #ede8da 50%, #f5f0e8 75%, #fdf6e3 100%) !important;
  color: #111827 !important;
}

body.light-mode .studio-gradient {
  background: linear-gradient(135deg, #fdf6e3 0%, #f5f0e8 25%, #ede8da 50%, #f5f0e8 75%, #fdf6e3 100%) !important;
}

body.light-mode .glass {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(198, 167, 94, 0.3) !important;
}

/* Background overrides */
body.light-mode .bg-charcoal,
body.light-mode .bg-gray-900 {
  background-color: #f3f4f6 !important;
}

body.light-mode .bg-gray-800 {
  background-color: #e5e7eb !important;
}

body.light-mode .bg-gray-700 {
  background-color: #d1d5db !important;
}

/* Text overrides */
body.light-mode .text-white {
  color: #111827 !important;
}

body.light-mode .text-cream {
  color: #1a1a1a !important;
}

body.light-mode .text-gray-400 {
  color: #4b5563 !important;
}

body.light-mode .text-gray-500 {
  color: #6b7280 !important;
}

body.light-mode .text-gray-300 {
  color: #374151 !important;
}

body.light-mode .text-gray-600 {
  color: #9ca3af !important;
}

/* Border overrides */
body.light-mode .border-gray-800 {
  border-color: #d1d5db !important;
}

body.light-mode .border-gray-700 {
  border-color: #e5e7eb !important;
}

/* Input and select fields */
body.light-mode input[type="text"],
body.light-mode select {
  background-color: #e5e7eb !important;
  color: #111827 !important;
  border-color: rgba(198, 167, 94, 0.4) !important;
}

/* Hover state overrides */
body.light-mode .hover\:bg-gray-700:hover {
  background-color: #c8cdd5 !important;
}

body.light-mode .hover\:bg-gray-600:hover {
  background-color: #d1d5db !important;
}

/* Red/danger buttons stay visible */
body.light-mode .bg-red-800 {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

body.light-mode .bg-red-900 {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

body.light-mode .hover\:bg-red-700:hover {
  background-color: #dc2626 !important;
}

body.light-mode .hover\:bg-red-800:hover {
  background-color: #b91c1c !important;
}

/* Footer */
body.light-mode footer {
  border-color: #d1d5db !important;
  color: #6b7280 !important;
}

/* Drop zone */
body.light-mode .drop-zone {
  border-color: rgba(198, 167, 94, 0.5) !important;
}

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-track {
  background: #f3f4f6;
}

/* Separator dividers */
body.light-mode .bg-gray-600 {
  background-color: #9ca3af !important;
}

/* Yellow/active film type buttons keep their color */
body.light-mode .bg-yellow-700 {
  background-color: #b45309 !important;
  color: #ffffff !important;
}

body.light-mode .hover\:bg-yellow-600:hover {
  background-color: #d97706 !important;
}

/* Preview containers */
body.light-mode #preview-container,
body.light-mode #frame-preview {
  background-color: #e5e7eb !important;
}

/* Mobile bottom bar */
body.light-mode .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.9) !important;
}
