:root {
  --text-primary: #18181b;
  --text-secondary: #71717a;
  --font-family-sans: "Outfit", -apple-system, sans-serif;
}

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

html {
  background: transparent;
}

body {
  font-family: var(--font-family-sans);
  color: var(--text-primary);
  background-color: transparent;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

/* Demo Info at top left */
.demo-info {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 10;
  max-width: 500px;
}

.demo-info h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.demo-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.workspace {
  position: relative;
  width: 100%;
  height: 100%;
}

.toolbar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e4e4e7; /* zinc-200 */
  border-radius: 9999px;
  width: 440px;
  height: 52px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 9998;
  gap: 16px; /* gap-4 */
}

/* Sections */
.section-border {
  border-right: 1px solid #e4e4e7; /* zinc-200 */
  padding-right: 16px; /* pr-4 */
}

.thickness-section {
  display: flex;
  align-items: center;
  height: 32px;
}

.color-section {
  display: flex;
  align-items: center;
  flex: 1;
  height: 32px;
}

/* Sliders */
.slider-container {
  position: relative;
  height: 32px; /* h-8 */
  touch-action: none;
  cursor: pointer;
  overflow: visible;
}

.slider-track-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.thumb-wrapper {
  position: absolute;
  top: 16px;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Thickness slider specific */
#thickness-thumb-container {
  margin-left: -20px;
  margin-top: -20px;
  width: 40px;
  height: 40px;
}

.thickness-thumb {
  background-color: white;
  border: 1px solid #e4e4e7;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: width, height, transform;
}

.thickness-inner {
  border-radius: 9999px;
  background-color: #facc15;
  will-change: width, height;
}

/* Color slider specific */
#color-thumb-container {
  margin-left: -16px;
  margin-top: -26px;
  width: 32px;
  height: 50px;
}

.color-thumb-svg {
  width: 100%;
  height: 50px;
  overflow: visible;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}
