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

body {
  font-family: Arial, sans-serif;
  background: #0e0e12;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-orbs {
  position: fixed;
  inset: 0;           
  pointer-events: none;
  overflow: hidden;   
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(90px);
  transition: background 0.2s ease;
}

.orb1 { width: 500px; height: 500px; top: -100px;  left: -100px; }
.orb2 { width: 400px; height: 400px; bottom: -80px; right: -70px; }
.orb3 { width: 350px; height: 350px; top: 50%;     left: 50%;
        transform: translate(-50%, -50%); }


.container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px;
  width: 560px;
  text-align: center;
  backdrop-filter: blur(16px); 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


h1 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

label {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  width: 100px;
  text-align: left;
  flex-shrink: 0;
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0e0e12;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

span {
  color: #fff;
  font-size: 20px;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.color-display {
  width: 160px;
  height: 160px;
  margin: 24px auto 16px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  transition: background-color 0.1s ease, box-shadow 0.3s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}

#rgbText, #hexText {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-family: monospace;
  margin: 4px 0;
}
/* Quick Color Palette */
.palette-container {
  margin: 24px 0 16px 0;
  text-align: left;
}

.palette-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 12px;
}

.palette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  padding: 0;
}

.palette-swatch:hover, .palette-swatch:focus-visible {
  transform: scale(1.15);
  border-color: #fff;
}

.palette-swatch:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#copyBtn {
  margin-top: 20px;
  padding: 12px 32px;
  background: #fff;
  color: #0e0e12;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
#copyBtn:hover  { opacity: 0.85; transform: translateY(-2px); }
#copyBtn:active { transform: translateY(0); }

#colorValue {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
}