* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  background-color: #121212;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 40px 24px;
}

header {
  text-align: center;
  margin-bottom: 48px;
}
header .icon {
  margin-bottom: 24px;
}
header .icon img {
  width: 64px;
  height: auto;
}
header h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f0f0f0;
  margin-bottom: 8px;
}
header .subtitle {
  font-size: 0.875rem;
  color: #888888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.password-display {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.password-display .password-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 2px;
  word-break: break-all;
  flex: 1;
  color: #e0e0e0;
}
.password-display .btn-icon {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.password-display .btn-icon:hover {
  color: #e0e0e0;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.controls .control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.controls .control-group label {
  font-size: 0.875rem;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toggle-group {
  display: flex;
  gap: 4px;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 4px;
}
.toggle-group .toggle-btn {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  background: none;
  border: none;
  color: #888888;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-group .toggle-btn.active {
  background: linear-gradient(to bottom, #cb2121, #830e0e);
  color: white;
}
.toggle-group .toggle-btn:not(.active):hover {
  color: #e0e0e0;
}

.btn-generate {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #cb2121, #830e0e);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}
.btn-generate:hover {
  opacity: 0.9;
}
.btn-generate:active {
  transform: scale(0.98);
}

footer {
  text-align: center;
  margin-top: 48px;
}
footer p {
  font-size: 0.75rem;
  color: #888888;
}

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1e1e1e;
  color: #e0e0e0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .container {
    padding: 32px 16px;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .password-display {
    padding: 20px 16px;
  }
  .password-display .password-text {
    font-size: 1.1rem;
  }
}
