:root {
  --font-mono: 'Courier New', 'Ubuntu Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #0f0f11;
  color: var(--text-cream);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0f0f11;
}

.container {
  max-width: 600px;
  margin: 2rem auto 1rem;
  padding: 0 1.25rem;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(52, 84, 209, 0.25));
  transition: transform 0.2s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-text);
}

header p {
  color: var(--brand-blue);
  font-family: var(--font-text);
  font-size: 0.9rem;
}

.tag-bracket {
  color: #666;
}

.panel {
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--brand-blue);
  border-radius: 4px;
  padding: 1.4rem;
  box-shadow: 0 0 40px rgba(52, 84, 209, 0.15);
  position: relative;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.generator-label {
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: var(--brand-sage);
  margin-bottom: 10px;
  display: block;
}

.generator-label::before {
  content: "// ";
  color: var(--brand-blue);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.password-input[type="range"] {
  flex: 1;
  accent-color: var(--brand-blue);
}

.word-count-display {
  font-family: var(--font-text);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  padding: 2px 8px;
  border-radius: 2px;
}

.password-input-select {
  width: 100%;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-sage);
  padding: 0.7rem;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 0.95rem;
}

.password-input-select:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.checkbox-group {
  display: grid;
  gap: 10px;
  margin-bottom: 2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  cursor: pointer;
  color: #aaa;
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--brand-blue);
}

.btn-generate {
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  font-family: var(--font-text);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 4px;
}

.btn-generate:hover {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 0 20px rgba(52, 84, 209, 0.3);
}

.btn-generate:active {
  transform: translateY(1px);
}

.btn-copy {
  background: #222;
  color: #fff;
  border: none;
  padding: 5px 12px;
  font-family: var(--font-text);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: 0.2s;
}

.btn-copy:hover {
  background: var(--brand-blue);
}

.btn-copy.copied {
  background: #2ed573;
}

.output-section {
  margin-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.password-display {
  background: #000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--brand-blue);
  margin-bottom: 1rem;
}

.password-text {
  font-family: var(--font-mono);
  color: #2ed573;
  font-size: 1.1rem;
}

.strength-meter {
  margin-top: 1rem;
}

.strength-label {
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
}

.strength-bar {
  height: 4px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}

.disclaimer {
  margin-top: 1.25rem;
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: #777;
  line-height: 1.4;
}

.disclaimer a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.disclaimer a:hover {
  color: #5f7cf0;
}

.strength-fill {
  height: 100%;
  transition: 0.5s;
  border-radius: 2px;
}

.strength-fill.weak {
  background: #ff4757;
  width: 30%;
}

.strength-fill.medium {
  background: #ffa502;
  width: 60%;
}

.strength-fill.strong {
  background: #2ed573;
  width: 100%;
}

footer {
  text-align: center;
  padding: 1rem;
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 600px) {
  .container {
    margin: 2rem auto;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }
}
