* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  background: #1a1a2e;
  color: #fff;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

h1 {
  font-size: 22px;
  text-align: center;
}

.container {
  background: #16213e;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 0 15px rgba(0,0,0,.3);
  border: 1px solid #3a3a5e;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row input[type='number'] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}

.row input[type='range'] {
  flex: 2;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.checkbox-group label, .toggle-group label {
  display: flex;
  align-items: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.checkbox-group input, .toggle-group input {
  margin-right: 8px;
  transform: scale(1.2);
}

button {
  width: 100%;
  padding: 12px;
  font-size: 17px;
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #45a049;
}

.reset-btn {
  background-color: #e53935;
}

.reset-btn:hover {
  background-color: #c62828;
}

.clipboard-clear-btn {
  background-color: #f57c00;
}

.clipboard-clear-btn:hover {
  background-color: #ef6c00;
}

.close-btn {
  background-color: #6c757d;
}

.close-btn:hover {
  background-color: #5a6268;
}

#passwordOutput {
  margin-top: 15px;
  padding: 14px;
  background: #0f3460;
  border-radius: 5px;
  word-break: break-word;
  text-align: center;
  font-size: 22px;
  transition: all .3s ease-in-out;
}

#passwordOutput.large {
  font-size: 32px;
  letter-spacing: 5px;
}

#strength {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 17px;
}

.weak {
  color: red;
}

.medium {
  color: orange;
}

.strong {
  color: yellowgreen;
}

.very-strong {
  color: lime;
}

.reminder, .disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.reminder {
  color: #ffc107;
}

.disclaimer {
  color: #ccc;
  font-size: 13px;
}

input[type='text'], #fileNameInput {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  border: none;
  margin-bottom: 10px;
}

#fileNameInput {
  margin-top: 20px;
}

@media (max-width: 480px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }
}

.footer {
  position: relative;
  border-top: 1px solid #fff;
  margin-top: 20px;
  padding: 20px 0 0;
  z-index: 10000;
  text-align: center;
  font-size: 14px;
}

.spacer-10 {
  height: 10px;
}

a {
  color: #0dcaf0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  color: #0dcaf0;
  text-decoration: none;
  outline: none
}

.logo {
  text-align: center;
}

.logo img {
  width: 250px;
  height: auto;
}
