* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f6f8;
  color: #222;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.upload-btn {
  background: #111827;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.upload-btn input {
  display: none;
}

.models {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.model-btn {
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.model-btn.active,
.model-btn:hover {
  background: #111827;
  color: #fff;
}

.canvas-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.photo-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

#photoPreview {
  width: 100%;
  display: none;
  border-radius: 12px;
}

#glassesOverlay {
  position: absolute;
  display: none;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 55%;
  pointer-events: none;
}

@media (max-width: 600px) {
  .app {
    padding: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* Controles de ajuste */
#adjustments {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#adjustments h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.adjustment-group {
    margin-bottom: 15px;
}

.adjustment-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.adjustment-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.adjustment-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #333;
    cursor: pointer;
    border-radius: 50%;
}

.adjustment-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #333;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

#resetAdjustments {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

#resetAdjustments:hover {
    background: #555;
}