body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 2rem;
  transition: background 0.3s;
}

:root {
  --bg: #f5f5f5;
  --text: #333;
  --container: #fff;
  --output:#eee;
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

.dark {
  --bg: #1e1e1e;
  --text: #f0f0f0;
  --container: #2a2a2a;
  --output: #333;
  --primary: #3399ff;
  --primary-dark: #1976d2;
}

.container {
  background: var(--container);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-select {
  position: absolute;
  top: 20px;
  right: 20px;
}

h2 {
  text-align: center;
  margin: 1rem 0;
}

.output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--output);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.copy-btn.copied {
  background: var(--success);
  transform: scale(1.05);
}

.strength-bar {
  height: 6px;
  width: 100%;
  background: #ccc;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.options div {
  margin: 0.5rem 0;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
}

#password {
  color: var(--text);
  font-size: 1.2rem;
  word-break: break-word;
  transition: color 0.3s ease;
}

.fade {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.length-group {
  margin: 1rem 0;
}
.length-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}
.length-group input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

@media (max-width: 600px) {
  .output {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  .btn {
    font-size: 0.95rem;
  }
}