.aihr-drop-zone {
  margin-bottom: 1rem;
  border: 2px dashed #ccc;
  border-radius: 0;
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.aihr-drop-zone.dragover {
  border-color: #425262;
  background: #e9ecef;
}

.aihr-drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.aihr-drop-zone-content p {
  margin: 0 !important;
}

.aihr-drop-zone-icon {
  font-size: 32px;
}

.aihr-browse-button {
  display: inline-block;
  padding: 8px 16px;
  background: #425262;
  color: white;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.aihr-browse-button:hover {
  background: #354152;
}

#aihr-image-upload,
#aihr-custom-image-upload,
#aihr-floor-changer-image-upload,
#aihr-nano-image-upload,
#aihr-nano-banana-image-upload {
  display: none;
}

.aihr-preview-container {
  margin-top: 15px;
  text-align: center;
}

.aihr-remove-image {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.aihr-remove-image:hover {
  background: #c82333;
}

/* Pagination Styles */
.aihr-pagination {
  margin: 20px 0;
  text-align: center;
}

.aihr-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #333;
  border-radius: 0;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.aihr-pagination .page-numbers:hover {
  background-color: #f5f5f5;
  color: #000;
}

.aihr-pagination .page-numbers.current {
  background-color: #fff;
  color: #000;
}

.aihr-pagination .page-numbers.prev,
.aihr-pagination .page-numbers.next {
  font-weight: 600;
}

.aihr-pagination .page-numbers.dots {
  border: none;
  padding: 8px 4px;
}

/* Renovation Style Select */
#aihr-renovation-style {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 0;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

#aihr-renovation-style:focus {
  outline: none;
  border-color: #666;
}

#aihr-renovation-style option {
  padding: 10px;
}

/* AI Renovation v2 4-Image Grid Styles */
.aihr-nano-banana-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}

.aihr-nano-banana-grid-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aihr-nano-banana-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.aihr-nano-banana-grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.aihr-nano-banana-grid-item .aihr-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aihr-nano-banana-grid-item:hover .aihr-image-overlay {
  opacity: 1;
}

.aihr-nano-banana-grid-item .aihr-overlay-button {
  padding: 8px 16px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.aihr-nano-banana-grid-item .aihr-download-button {
  background: #28a745;
  color: white;
}

.aihr-nano-banana-grid-item .aihr-download-button:hover {
  background: #218838;
}

.aihr-nano-banana-grid-item .aihr-edit-button {
  background: #425262;
  color: white;
}

.aihr-nano-banana-grid-item .aihr-edit-button:hover {
  background: #354152;
}

.aihr-nano-banana-grid-header {
  text-align: center;
  margin-bottom: 16px;
}

.aihr-nano-banana-grid-header h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.aihr-nano-banana-grid-header p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .aihr-nano-banana-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .aihr-nano-banana-grid-item img {
    height: 160px;
  }
}

/* ========================================
   BEFORE/AFTER COMPARISON SLIDER
   ======================================== */

/* Result View - Compare Button in Overlay */
.aihr-compare-button {
  padding: 8px 16px;
  background: #425363;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  font-family: 'Futura LT', sans-serif;
}

.aihr-compare-button:hover {
  background: #354152;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 83, 99, 0.3);
}

.aihr-compare-button i {
  font-size: 16px;
}

/* Comparison Modal */
#aihr-comparison-modal {
  display: none;
  overflow: hidden;
}

#aihr-comparison-modal .aihr-modal-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#aihr-comparison-modal img-comparison-slider {
  --divider-width: 3px;
  --divider-color: #ffffff;
  --default-handle-opacity: 1;
  --default-handle-width: 60px;
  object-fit: contain;
}

.aihr-close-modal {
  transition: all 0.2s ease;
}

.aihr-close-modal:hover {
  color: #ddd;
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .aihr-close-modal {
    right: 10px !important;
    top: 10px !important;
    font-size: 35px !important;
  }

  #aihr-comparison-modal .aihr-modal-content {
    width: 95% !important;
  }

  #aihr-comparison-modal img-comparison-slider {
    --default-handle-width: 70px;
  }

  /* Stack compare button vertically on mobile for better touch target */
  .aihr-compare-button {
    width: 100%;
    justify-content: center;
  }
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
  #aihr-comparison-modal img-comparison-slider {
    --default-handle-width: 70px;
  }

  .aihr-compare-button {
    padding: 10px 18px;
    font-size: 15px;
  }
}
