/* Main Tool Container */
.elevation-tool {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.tool-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* Control Panel */
.control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.control-group {
  margin-bottom: 1rem;
}

.control-group h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #34495e;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Preview Area */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.elevation-preview {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.elevation-level {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Slider Controls */
.slider-container {
  margin-bottom: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.slider-label span {
  font-weight: 500;
  color: #34495e;
}

.slider-label .value {
  font-family: monospace;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
}

/* Color Pickers */
.color-picker-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.color-picker-label {
  width: 120px;
  font-weight: 500;
  color: #34495e;
}

.color-picker {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
  margin-right: 1rem;
}

.color-value {
  font-family: monospace;
}

/* Code Output */
.code-output {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  margin-bottom: 2rem;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #3498db;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: #2980b9;
}

/* Preset Buttons */
.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.preset-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 0.9rem;
}

.preset-btn:hover {
  background: #f8f9fa;
}

.preset-btn.active {
  background: #3498db;
  color: white;
  border-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .control-panel {
    grid-template-columns: 1fr;
  }
  
  .preset-buttons {
    flex-direction: column;
  }
}

/* Elevation Examples */
.elevation-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.elevation-example {
  height: 100px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #7f8c8d;
}