* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: white;
}

.container {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  margin-bottom: 15px;
  font-size: 1rem;
}

.strength-bar {
  width: 100%;
  height: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

.strength-text {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: bold;
}

.tips {
  margin-top: 15px;
  font-size: 0.85rem;
  opacity: 0.85;
  padding-left: 18px;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.04);
}

#generateBtn {
  background: #00c6ff;
  color: black;
}

#copyBtn {
  background: #ffd700;
  color: black;
}

.generated {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: bold;
  word-break: break-all;
  color: #fff;
}
