/* style.css */
:root {
  --bg-light: #f0f0f0;
  --text-light: #1e1e1e;
  --bg-dark: #111;
  --text-dark: #fff;
  --card-light: #fff;
  --card-dark: #1e1e1e;
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card: var(--card-light);
  --logo-text-color: #1e1e1e;
}

body {
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

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

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--logo-text-color);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.copy-feedback {
  position: absolute;
  top: -15px;
  right: 20px;
  background: #00c853;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.password {
  font-size: 1.4rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  word-break: break-word;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.8px;
  box-shadow: 0 0 10px rgba(0,255,150,0.3);
  transition: all 0.3s ease;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.7), rgba(0, 255, 150, 0.7));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 255, 170, 0.4);
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn i {
  margin-right: 8px;
}

.btn:hover,
.btn:active {
  transform: none;
  box-shadow: none;
}

.btn-generate {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 4px 20px rgba(0, 150, 255, 0.4);
}

.btn-copy {
  background: linear-gradient(135deg, #00e676, #00c853);
  box-shadow: 0 4px 20px rgba(0, 255, 170, 0.4);
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  background: linear-gradient(45deg, #ff0044, #00c853, #00c9ff);
  -webkit-background-clip: text;
  color: transparent;
  padding: 10px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.footer a {
  color: #00c853;
  text-decoration: none;
  font-weight: bold;
}

.footer:hover {
  box-shadow: 0 8px 30px rgba(0, 255, 170, 0.6);
}

.footer .heart {
  color: #ff385c;
  font-size: 1.5rem;
  padding-left: 5px;
}

.settings,
.options {
  width: 100%;
  margin-bottom: 1rem;
}

.length-label {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#lengthValue {
  font-size: 1rem;
  background: #222;
  color: #0f0;
  padding: 2px 10px;
  border-radius: 10px;
}

#lengthRange {
  width: 100%;
  margin-top: 5px;
  accent-color: #00c853;
}

.options label {
  display: block;
  margin-bottom: 8px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.button-container .btn {
  width: 48%;
}