:root {
  --bg: radial-gradient(circle at 20% 20%, #1a1f35, #0a0d18 80%);
  --card: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.06);
  --text: #e5eaff;
  --accent: #7c5cff;
  --glow: 0 0 15px rgba(124, 92, 255, 0.6);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 0 16px;
}

.container {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: var(--glow);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #9a8cff, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #a8b2d1;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.generator-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-display {
  background: var(--glass);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 1rem;
  overflow-x: auto;
}

.btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(90deg, #7c5cff, #4b7bff);
  color: white;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  filter: brightness(1.15);
}

.btn.secondary {
  background: transparent;
  color: #cfd4ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: #7c5cff;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 0.9rem;
}

.strength-section {
  text-align: left;
  font-size: 0.85rem;
  color: #aab2d4;
}

.strength-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 5px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #8f96b8;
}

/* Developer credit */
.credit {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #8f96b8;
  text-align: center;
}
