#visualize-ai-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
}

.visualize-ai-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
  z-index: -1;
}

.visualize-ai-modal-content {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #ffffff; border-radius: 16px; padding: 0; width: 700px; max-width: 90vw; height: 600px; max-height: 95vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: modalSlideIn 0.3s ease-out forwards;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.visualize-ai-modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.visualize-ai-modal-close {
  position: absolute; top: 16px; right: 16px; background: #f8f9fa; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all 0.2s ease;
  opacity: 0;
  animation: fadeIn 0.25s ease-out 0.15s forwards;
}

.visualize-ai-modal-close:hover {
  background: #e9ecef;
}

.visualize-ai-modal-close svg {
  color: #6c757d;
}

.back-to-options {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
  animation: fadeIn 0.25s ease-out 0.15s forwards;
}

.back-to-options:hover {
  background: #e9ecef;
}

.back-to-options svg {
  width: 16px;
  height: 16px;
  color: #6c757d;
}

.modal-content {
  padding: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Section Slide Transitions */
.main-options-section, .room-upload-section, .ideas-section, .loading-section, .result-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
  transform: translateX(0);
  opacity: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hide sections by default */
.room-upload-section, .ideas-section, .loading-section, .result-section {
  display: none;
}

/* Slide animations */
.section-slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.section-slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}

.section-slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
}

.section-slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}

.section-slide-in-center {
  transform: translateX(0);
  opacity: 1;
}

/* Custom Scrollbar Styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.modal-content::-webkit-scrollbar-thumb:active {
  background: #6b7280;
}

/* Firefox Scrollbar Styling */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

/* Product Image Compositor */
.product-compositor {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 0 auto 48px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.compositor-image-left,
.compositor-image-center,
.compositor-image-right {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 5px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #f8f9fa;
  display: none;
}

.compositor-image-center {
  z-index: 3;
  opacity: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
}

.compositor-image-left {
  z-index: 1;
  opacity: 0.4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg) translateX(-100px) translateY(15px);
}

.compositor-image-right {
  z-index: 1;
  opacity: 0.4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(8deg) translateX(100px) translateY(15px);
}

.compositor-image-left img,
.compositor-image-center img,
.compositor-image-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide compositor on mobile */
@media (max-width: 768px) {
  .product-compositor {
    display: none;
  }
}

/* Main Options Section */
.main-options-section {
  padding: 40px;
  text-align: center;
}

.options-title {
  margin: 0 0 16px 0;
  color: #212529;
  font-size: 32px;
  font-weight: 550;
  line-height: 1.2;
}

.options-description {
  margin: 0 0 32px 0;
  color: #6c757d;
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.option-button {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 24px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  width: 280px;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
}

.option-button-upload {
  background: #000000;
  color: #ffffff;
  border: none;
}

.option-button-upload:hover {
  background: #333333;
  transform: translateY(-1px);
}

.option-button-upload .ai-icon {
  stroke: #ffffff;
}

.option-button-ideas {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.option-button-ideas:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.option-button-ideas .ai-icon {
  stroke: #000000;
}

/* Old option styles removed - no longer needed */

/* Room Upload Section */
.room-upload-section, .result-section {
  padding: 0;
  display: none;
}

/* Glass Panel for Room Upload */
.room-upload-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  z-index: 5;
}

.room-upload-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.room-upload-panel h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

.room-upload-panel .prompt-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.room-upload-panel .prompt-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.room-upload-panel .generate-btn {
  width: 100%;
  padding: 12px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.room-upload-panel .generate-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.room-upload-panel .generate-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Glass Panel for Result Actions */
.result-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  z-index: 5;
}

.result-panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.ideas-section {
  padding: 60px 40px;
  display: none;
}

.loading-section {
  padding: 0;
  display: none;
}

.loading-section .loading-content {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Loading Panel - Similar to photo preview panel */
.loading-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  z-index: 5;
}

.loading-panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.loading-panel .loading-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.loading-panel .loading-description {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6c757d;
}

.loading-panel .cancel-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  transition: all 0.2s ease;
}

.loading-panel .cancel-btn:hover {
  background: #f8f9fa;
  border-color: #9ca3af;
}

.main-options-section {
  display: block;
}

.section-title {
  margin: 0 0 8px 0;
  color: #212529;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.section-description {
  margin: 0 0 32px 0;
  color: #6c757d;
  font-size: 16px;
  text-align: center;
}

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 24px auto;
}

.upload-button, .camera-button {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #212529;
  font-size: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.upload-button-content, .camera-button-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-button-title, .camera-button-title {
  font-weight: 600;
  font-size: 16px;
  color: #212529;
}

.upload-button-description, .camera-button-description {
  font-weight: 400;
  font-size: 14px;
  color: #6c757d;
}

.upload-button:hover, .camera-button:hover {
  border-color: #2c2c2c;
  background: #f8f9fa;
}

.photo-preview {
  text-align: center;
  margin: 0;
  width: 100%;
  position: relative;
}

.change-photo-btn {
  position: fixed;
  bottom: 220px;
  right: 24px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.photo-preview img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 0;
  border: none;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.change-photo-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

.change-photo-btn svg {
  width: 16px;
  height: 16px;
  color: #6c757d;
}

.room-upload-content {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placement-input {
  margin: 0;
  max-width: 400px;
  text-align: center;
}

.placement-input label {
  display: block;
  margin-bottom: 8px;
  color: #212529;
  font-weight: 600;
}

.placement-input input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.placement-input input:focus {
  outline: none;
  border-color: #2c2c2c;
}

.generate-room-btn, .generate-ideas-btn {
  background: #000000;
  border: none;
  border-radius: 24px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: fit-content;
}

.generate-room-btn:hover, .generate-ideas-btn:hover {
  background: #333333;
  transform: translateY(-1px);
}

.ai-icon {
  color: #ffffff;
  margin-right: 8px;
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

/* Ideas Section */
.prompt-container {
  max-width: 500px;
  margin: 0 auto;
}

.prompt-container textarea {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  resize: vertical;
  margin-bottom: 24px;
  font-family: inherit;
}

.prompt-container textarea:focus {
  outline: none;
  border-color: #2c2c2c;
}

.presets-container {
  margin-bottom: 24px;
}

.presets-label {
  margin: 0 0 12px 0;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preset-btn {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #212529;
  font-size: 14px;
  font-weight: 600;
}

.preset-btn:hover {
  border-color: #2c2c2c;
  background: #f8f9fa;
}

/* Loading Section */
.loading-section {
  padding: 40px;
  text-align: center;
}

.loading-image-container {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
}

.loading-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
  object-fit: contain;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  animation: sparkle 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px #ffffff, 0 0 20px rgba(255, 255, 255, 0.8);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { top: 70%; left: 25%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { top: 15%; left: 70%; animation-delay: 0.9s; }
.sparkle:nth-child(5) { top: 85%; left: 60%; animation-delay: 1.2s; }
.sparkle:nth-child(6) { top: 60%; left: 10%; animation-delay: 1.5s; }
.sparkle:nth-child(7) { top: 30%; left: 50%; animation-delay: 0.2s; }
.sparkle:nth-child(8) { top: 80%; left: 40%; animation-delay: 0.8s; }
.sparkle:nth-child(9) { top: 10%; left: 30%; animation-delay: 1.1s; }
.sparkle:nth-child(10) { top: 90%; left: 20%; animation-delay: 0.4s; }

@keyframes sparkle {
  0%, 100% { 
    opacity: 0; 
    transform: scale(0.3) rotate(0deg); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1) rotate(180deg); 
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

.loading-title {
  margin: 0 0 8px 0;
  color: #212529;
  font-size: 20px;
  font-weight: 600;
}

.loading-description {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Result Section */
.result-section {
  padding: 40px;
  text-align: center;
}

.result-title {
  margin: 0 0 24px 0;
  color: #212529;
  font-size: 24px;
  font-weight: 600;
}

.result-image-container {
  margin: 0;
  display: block;
  width: 100%;
}

.result-image-container img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  display: block;
}

.result-content {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.download-btn, .regenerate-btn, .back-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #212529;
  font-size: 14px;
  font-weight: 600;
}

.download-btn:hover, .regenerate-btn:hover, .back-btn:hover {
  border-color: #2c2c2c;
  background: #f8f9fa;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .visualize-ai-modal-content {
    width: 95vw;
    height: 85vh;
    max-height: 85vh;
    max-width: 95vw;
  }
  
  /* Shorter modal for image viewing pages */
  .room-upload-section .visualize-ai-modal-content,
  .result-section .visualize-ai-modal-content {
    height: 75vh;
    max-height: 75vh;
  }
  
  .options-title {
    font-size: 20px;
  }
  
  .options-container {
    max-width: 420px;
    gap: 14px;
  }
  
  .option-button {
    padding: 14px 18px;
  }
  
  /* Old option title/description styles removed */
  
  .photo-preview {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  
  .photo-preview img {
    max-height: 48vh;
    height: auto;
    width: 100%;
    object-fit: contain;
  }
  
  .photo-preview.landscape img {
    height: 48vh;
    width: 100%;
    object-fit: cover;
  }
  
  .photo-preview.portrait img {
    height: 48vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .result-image-container {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  .result-image-container img {
    height: 52vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .room-upload-panel {
    padding: 12px 14px;
    height: 27vh;
    overflow-y: auto;
  }
  
  .room-upload-panel-content {
    gap: 8px;
  }
  
  .room-upload-panel label {
    font-size: 13px;
    margin-bottom: 3px;
  }
  
  .room-upload-panel .prompt-input {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 40px;
    resize: none;
  }
  
  .room-upload-panel .generate-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .result-panel {
    padding: 12px 14px;
    height: 23vh;
  }
  
  .result-panel-content {
    gap: 8px;
  }
  
  .result-actions {
    gap: 8px;
  }
  
  .download-btn, .regenerate-btn, .back-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .change-photo-btn {
    position: fixed;
    bottom: calc(27vh + 8px);
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .upload-container {
    max-width: 450px;
  }
  
  .ideas-section {
    padding: 50px 30px;
  }
  
  .prompt-container textarea {
    min-height: 100px;
    font-size: 14px;
  }
  
  .fullscreen-result-actions {
    bottom: 20px;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 10px;
  }
  
  .fullscreen-result-btn {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 70px;
    flex: 1;
    max-width: 100px;
  }
  
  .fullscreen-result-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .fullscreen-close-btn {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }
  
  .fullscreen-close-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Fullscreen Result View */
.fullscreen-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.fullscreen-result-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.fullscreen-result-image.zoomed {
  cursor: zoom-out;
  transform: scale(1.5);
}

.fullscreen-result-actions {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10001;
}

.fullscreen-result-btn {
  background: transparent;
  border: 2px solid #d1d5db;
  color: #d1d5db;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fullscreen-result-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.fullscreen-result-btn svg {
  width: 16px;
  height: 16px;
}

.fullscreen-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 2px solid #d1d5db;
  color: #d1d5db;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
}

.fullscreen-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .visualize-ai-modal-content {
    width: 85%;
    max-width: 600px;
  }
  
  .photo-preview img {
    max-height: 45vh;
  }
  
  .result-image-container img {
    max-height: 65vh;
  }
}

/* Large screen optimization */
@media (min-width: 1025px) {
  .result-image-container img {
    max-height: 70vh;
  }
  
  .photo-preview img {
    max-height: 50vh;
  }
}
