@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0a0f1f, #000814 80%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 25px 20px 10px;
}

.brand-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 0 12px #00ffff);
  transition: transform 0.3s, filter 0.3s;
}
.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px #00ffff);
}

.hydro {
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff, 0 0 25px #00aaff;
}

.subtitle {
  color: #aaa;
  font-size: 0.95em;
}

.panel {
  background: rgba(10, 15, 35, 0.9);
  border: 1px solid #00ffff33;
  box-shadow: 0 0 30px #00ffff22, inset 0 0 15px #0033aa33;
  border-radius: 18px;
  width: 90%;
  max-width: 700px;
  padding: 25px 35px 40px;
  margin: 25px 0 40px;
  text-align: center;
}

.divider {
  border: none;
  border-top: 1px solid #00ffff33;
  margin: 35px 0;
}

h2 {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}
.hint {
  font-size: 0.9em;
  opacity: 0.8;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #0c1b2a;
  color: #00ffff;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 0 5px #00ffff44;
}

.color-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.rgb-control {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 8px;
}
input[type="range"] {
  width: 100%;
  accent-color: #00ffff;
  height: 6px;
  border-radius: 5px;
}
.rgb-control span {
  display: block;
  font-size: 0.9em;
  color: #00ffaa;
}

.preview-box {
  margin-top: 25px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  box-shadow: 0 0 15px #00ffff33;
}
#colorPreviewText,
#gradientPreviewText {
  font-size: 2em;
  font-weight: 700;
  text-shadow: 0 0 10px #00ffff66;
  transition: color 0.2s;
}

.gradient-pickers {
  display: flex;
  justify-content: space-evenly;
  margin-top: 15px;
  gap: 10px;
}
.gradient-pickers input[type="color"] {
  border: none;
  width: 80px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff55;
}

#gradientBar {
  margin: 20px 0;
  height: 18px;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 0 15px #00ffff55;
}

.result-box {
  margin-top: 25px;
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #00ffff44;
}
#colorCode,
#gradientCode {
  font-family: monospace;
  color: #00ffaa;
  margin-bottom: 10px;
  font-size: 1.05em;
}

button {
  background: linear-gradient(90deg, #00c8ff, #00ffaa);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  box-shadow: 0 0 15px #00ffaa;
  transform: scale(1.05);
}

.about {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid #00ffff33;
  padding: 25px;
  width: 100%;
  text-align: center;
  box-shadow: 0 -5px 15px #00ffff22;
}
.about h3 {
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
}
.about p {
  color: #bbb;
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.tool-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.tool-button {
  background: linear-gradient(90deg, #00c8ff, #00ffaa);
  color: #000;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #00ffff55;
  font-size: 1rem;
}
.tool-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ffff;
  color: #000;
}

footer {
  text-align: center;
  color: #888;
  font-size: 0.85em;
  padding: 20px;
  opacity: 0.9;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 -5px 20px #00ffff22;
}

.footer-links {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  color: #00ffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff;
}
