/* styles.css */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding: 0;
  background-color: #f7f8f9;
  color: #333;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.options-container, .button-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

fieldset {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
  flex: 1;
}

.wide-fieldset {
  flex: 1.5;
}

legend {
  font-weight: bold;
  padding: 0 5px;
}

label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

input[type="text"],
select {
  flex: 1;
  margin-left: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #333;
}

button {
  padding: 12px 20px;
  color: #fff;
  background-color: hsla(200, 100%, 50%, 1.0);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: hsla(200, 100%, 40%, 1.0);
}

.wide-button {
  flex: 2.78;
}

.narrow-button {
  flex: 1;
}

#results {
  margin-top: 20px;
}

#history {
  margin-top: 24px;
  font-family: 'Roboto Mono', 'Consolas', 'Menlo', 'Courier New', Courier, monospace;
}

#history-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  border-radius: 4px;
}

#history-list li {
  padding: 0px 16px;
  background-color: #f7f8f9; 
  margin-top: 8px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  line-height: 40px;
}

li.new-password {
  animation: flash 0.6s ease-in-out 3;
}

@keyframes flash {
  0%, 100% {
    background: hsla(134, 61%, 41%, 0.05);
  }
  50% {
    background: hsla(134, 61%, 41%, 0.3);
  }
}



li.new-password:before {
    content: "";
    position: absolute;
    display: block;
    width: 2px;
    background: #28a745;
    text-align: center;
    left: 0;
    border-radius: 8px;
    height: 40px;
    top: 0;
}

#history-list li:hover {
  background-color: hsla(200, 100%, 50%, .1) !important;
}

#history-list li span:last-child {
  color: rgba(0, 0, 0, 0.15);
  font-variant-numeric:tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#toast {
  position: fixed;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  z-index: 9999;
  animation: slideIn 0.3s ease forwards, fadeOut 0.3s ease forwards 1.5s;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(-50%) translateY(60px);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(60px);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
  }
}
