/* Room Visualizer Styles */
.visualizer-container {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.visualizer-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 600;
}

.visualizer-subtitle {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Room Selector */
.room-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.room-selector-btn {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.room-selector-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room-selector-btn.active {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(147, 112, 219, 0.4);
  transform: translateY(-2px);
}

/* Color Palette */
.color-palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.color-swatch {
  position: relative;
  width: 100px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch.active {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-name {
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.room-type-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.room-type-btn {
  padding: 8px 15px;
  border: none;
  background-color: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.room-type-btn:hover {
  background-color: #e0e0e0;
}

.room-type-btn.active {
  background-color: var(--accent);
  color: white;
}

.room-preview {
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background-image 0.3s ease;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}

.color-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

#room-visualizer {
  margin: 0 auto;
  max-width: 900px;
}

/* Room Visualization */
.room-visualization {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 16:10 aspect ratio */
  margin-bottom: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.room-visualization:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Room Image Container */
.room-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.room-visualization:hover .room-image {
  transform: scale(1.02);
}

/* Selected Color Indicator */
.selected-color-indicator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* Info Text */
.visualizer-info {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #666;
  font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .visualizer-container {
    padding: 20px;
  }
  
  .color-swatch {
    width: 50px;
    height: 50px;
  }
  
  .room-visualization {
    padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
  }
  
  .selected-color-indicator {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .room-selector-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
} 