.palette-container {
  max-width: 1000px;
  margin: 120px auto 60px;
  padding: 0 20px;
}
.viz-container {
  width: 100%;
  height: 600px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.tooltip {
  position: absolute;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
/* Photo Gallery Styles */
.photo-gallery {
  border-top: 1px solid #eee;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.caption {
  padding: 8px 12px;
  text-align: center;
  font-size: 0.85em;
  color: #666;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
/* Contrast Table Styles */
.contrast-section {
  border-top: 1px solid #eee;
}
.contrast-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #eee;
  margin: 0 auto;
}
.contrast-table th,
.contrast-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contrast-table th {
  background: #f5f5f5;
}
/* Colorblind Simulation Styles */
.colorblind-section {
  border-top: 1px solid #eee;
}
.colorblind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.colorblind-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.colorblind-card h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}
.colorblind-card .stat {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 15px;
}
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
/* New Visual Enhancements */
.palette-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.palette-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}
.palette-card-color {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 8px;
}
.palette-card-name {
  font-weight: bold;
  font-size: 0.9em;
}
.palette-card-hex {
  font-size: 0.8em;
  color: #777;
}
.inspiration-bg {
  /* Initial state: transparent */
  background-color: transparent;
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
  /* Smooth transition */
  transition: background-color 1.5s ease-out;
}
.inspiration-bg.visible {
  /* Active state: Cloud Dance */
  background-color: #F0EEE9;
}
.inline-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: text-bottom;
  border: 1px solid rgba(0,0,0,0.1);
}
/* Switch Toggle Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
/* Minimal Viz Styles */
.mini-viz {
  width: 100%;
  height: 150px;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
