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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --primary: #2563eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #111827;
  --muted: #6b7280;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text);
  padding: 20px;
}

.container {
  background: var(--card);
  width: 100%;
  max-width: 560px;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0;
  font-size: 28px;
}

h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 6px;
}

p {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 16px;
}

img {
  max-width: 100%;
}

.desc {
  color: var(--muted);
  margin-bottom: 25px;
}

.output {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.output input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.bg-logo {
  text-align: center;
  background: #000000;
  border-radius: 6px;
  margin: 30px 0;
}

button {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 900;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.5;
}

button {
  transition: all 0.25s ease;
}

button.primary {
  background: var(--primary);
  color: white;
}

button.primary:hover {
  background: #1d4ed8;
}

button.secondary {
  background: #111827;
  color: white;
}

button.secondary:hover {
  opacity: 0.9;
}

button.copied {
  background: var(--success) !important;
  color: white;
}

#copyBtn {
  background: transparent;
  border: 1px solid #e5e7eb;
}

checkbox {
  width: 16px;
  height: 16px;
}

.controls {
  margin-top: 20px;
}

input[type="range"] {
  width: 100%;
  margin: 0 0 15px 0;
}

.row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.justify-around {
  justify-content: space-around;
}

.btn-flex-1 {
  margin-top: 20px;
}

.btn-flex-1 button {
  flex: 1;
}

.strength {
  margin-top: 10px;
  font-weight: 600;
}

.entropy {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Strength colors */
.good { color: var(--success); }
.warn { color: var(--warning); }
.bad { color: var(--danger); }

/* Strength bar */
.strength-bar {
  height: 8px;
  border-radius: 10px;
  background: #e5e7eb;
  margin-top: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

footer {
  margin-top: 50px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
} */

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  body {
    padding: 12px 10px;
  }

  .container {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }
}