body {
  font-family: 'Segoe UI', sans-serif;
  background: #f3f4f6;
  padding: 40px 20px; /* 🆕 Add spacing around body */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.password-box {
  position: relative;
  margin-bottom: 20px;
}

input[type="password"],
input[type="text"] {
  padding: 12px 40px 12px 12px;
  width: 100%;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 11px;
  cursor: pointer;
  font-size: 18px;
  color: #555;
}

#strengthBar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

#strengthBar div {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

#strengthText {
  margin: 12px 0;
  font-weight: bold;
}

ul#criteria {
  text-align: left;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

ul#criteria li {
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: #f9f9f9;
  font-size: 15px;
}

ul#criteria li.valid {
  color: green;
  background-color: #e6ffe6;
}

ul#criteria li.invalid {
  color: red;
  background-color: #ffe6e6;
}

#copyBtn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #0077ff;
  color: white;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

#copyBtn:hover {
  background: #005ecc;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f3f4f6;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.password-box {
  position: relative;
  margin-bottom: 1rem;
}

input[type="password"],
input[type="text"] {
  padding: 12px 40px 12px 12px;
  width: 100%;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 11px;
  cursor: pointer;
  font-size: 18px;
  color: #555;
}

#generateBtn,
#copyBtn {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  background: #0077ff;
  color: white;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

#generateBtn:hover,
#copyBtn:hover {
  background: #005ecc;
}

#strengthBar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}

#strengthBar div {
  height: 100%;
  width: 0%;
  background: #ccc;
  transition: all 0.3s ease;
}

#strengthText {
  margin: 12px 0;
  font-weight: bold;
}

ul#criteria {
  text-align: left;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

ul#criteria li {
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: #f9f9f9;
  font-size: 15px;
}

ul#criteria li span {
  font-weight: bold;
  margin-right: 8px;
}

ul#criteria li.valid {
  color: green;
  background-color: #e6ffe6;
}

ul#criteria li.invalid {
  color: red;
  background-color: #ffe6e6;
}

#suggestionsBox {
  margin-top: 1rem;
  display: none;
  text-align: left;
}

#suggestionsBox ul {
  padding-left: 20px;
  margin: 0;
}

#toast {
  display: none;
  margin-top: 10px;
  background: #4caf50;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}
