* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background: #ffffff;
}

.password-listing {
    display: inline-flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.password-text {
    flex-grow: 1;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 4px 0;
    border: 2px solid;
    background-color: white;
    outline: none;
    cursor: default;
    user-select: text;
}

.password-hidden {
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.passwords {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.passwords li {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.passwords li:nth-child(even) {
    background-color: #fafafa;
}

.passwords li:last-child {
    border-bottom: none;
}

.passwords li:hover {
    background-color: #f5f5f5;
}

.passwords li .password-text {
    flex-grow: 1;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 4px 8px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.passwords li i {
    color: #666;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}


.flash-green {
    animation: flashGreen 0.2s ease-out;
}

@keyframes flashGreen {
  0% {
    background-color: transparent;
  }
  25% {
    background-color: #ccffcc;
  }
  50% {
    background-color: #80ff80;
  }
  75% {
    background-color: #ccffcc;
  }
  100% {
    background-color: transparent;
  }
}

h1 {
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 600;
}

form > div {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

input[type="submit"] {
  padding: 10px 20px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #3a7bc8;
}

a {
  display: inline-block;
  margin-top: 16px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}
