body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #e9f0ff, #f3f7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  color: #333;
}

.container {
  position: relative;
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  width: 100%;
}

h1 {
  margin-top: 4em;
  margin-bottom: 1em;
  color: #2c64e3;
  font-weight: 500;
}

.lock {
  margin-right: 0.25em;
}

.length,
.options,
.actions,
.profile {
  margin-bottom: 1em;
}

.actions button {
  font-size: 1.1em;
  padding: 0.8em 1.2em;
}

.settings {
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1em;
}

.options label {
  display: block;
  margin: 0.25em 0;
}


.locale-switch {
  position: absolute;
  top: 1em;
  right: 1em;
}

.locale-switch button {
  font-size: 0.5em;
  padding: 0.3em 0.5em;
}

button {
  background: #fff;
  color: #2c64e3;
  border: 2px solid #2c64e3;
  padding: 0.6em 1em;
  border-radius: 4px;
  cursor: pointer;
  margin: 0.2em;
  font-size: 1em;
}

button:hover {
  background: #e8f0ff;
}

button.active {
  background: #2c64e3;
  color: #fff;
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
}

.password-wrapper input {
  box-sizing: border-box;
  width: 100%;
  padding: 1em;
  padding-right: 2.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0.5em;
  font-size: 2em;
  text-align: center;
}

.password-wrapper input::placeholder {
  color: #666666;
}

.toggle-eye {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

.timer {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #555;
  min-height: 1.2em;
}

.timer.hidden {
  visibility: hidden;
}
@media (pointer: coarse) {
  .length button {
    min-width: 44px;
    min-height: 44px;
  }
  .options label {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .options input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 0.5em;
  }
}

.strength-meter {
  margin-bottom: 0.5em;
}

.strength-meter .bars {
  display: flex;
  margin-bottom: 0.3em;
}

.strength-meter .bar {
  height: 6px;
  flex: 1;
  margin: 0 2px;
  background-color: #ddd;
  border-radius: 2px;
}

.strength-1 .bar.active { background: #e74c3c; }
.strength-2 .bar.active { background: #e67e22; }
.strength-3 .bar.active { background: #f1c40f; }
.strength-4 .bar.active { background: #3498db; }
.strength-5 .bar.active { background: #2ecc71; }

.strength-meter .strength-text {
  font-size: 0.9em;
  color: #555;
}

.copy-toast {
  position: absolute;
  left: 50%;
  bottom: 1em;
  transform: translateX(-50%);
  background: #2ecc71;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  animation: fadeout 1.5s forwards;
  pointer-events: none;
  font-size: 0.9em;
}

.note {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #555;
}

.tips {
  margin-top: 1em;
  text-align: left;
}

.tips h2 {
  margin-bottom: 0.5em;
}

.tips ul {
  padding-left: 1em;
}

footer {
  margin-top: 1em;
  font-size: 0.9em;
}

footer a {
  color: #2c64e3;
  text-decoration: none;
  margin: 0 0.3em;
}

@keyframes fadeout {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
