
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --bg-dark: #0b0d17;
  --panel-dark: #11152b;

  --neon-cyan: #00ffe1;
  --neon-purple: #7f5cff;

  --text-main: #eaeaff;
  --text-muted: #9aa0ff;

  --danger: #ff3b3b;
  --warning: #ffd000;
  --safe: #00ffe1;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1f3c, var(--bg-dark));
  font-family: "Orbitron", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
}


.container {
  width: 90%;
  max-width: 420px;
}

.card {
  background: var(--panel-dark);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 0 40px rgba(127, 92, 255, 0.25);
}


.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header h1 {
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 255, 225, 0.6);
}

.subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}


.password-section {
  position: relative;
  background: #0d1024;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 15px rgba(0, 255, 225, 0.15);
}

.display {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-family: monospace;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
}

.copyBtn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  top: -32px;
  right: 0;
  background: var(--neon-purple);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0);
  transition: 0.2s ease;
}

.tooltip.active {
  opacity: 1;
  transform: scale(1);
}

/* ===============================
   PRESETS
================================ */
.presets {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.presets button {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--neon-purple);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.presets button:hover {
  background: var(--neon-purple);
  color: #000;
}


.input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.length-container {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}


.slider {
  appearance: none;
  height: 0.6rem;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
}


.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
}

.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
}

.check input:checked {
  background: var(--neon-cyan);
}


.strength-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 25%;
  background: var(--danger);
  transition: 0.3s ease;
}


.generateButton {
  margin-top: 0.6rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: none;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  color: #000;
  cursor: pointer;
  transition: 0.25s ease;
}

.generateButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 225, 0.8);
}
