* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0f172a;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================
   HEADER
===================== */
.app-header {
  text-align: center;
  padding: 30px 15px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #38bdf8;
}

.tagline {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 5px;
}

/* =====================
   MAIN CONTAINER
===================== */
.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  display: grid;
  gap: 20px;
  padding-bottom: 40px;
}

/* =====================
   CARDS
===================== */
.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =====================
   PASSWORD DISPLAY
===================== */
.password-display h2 {
  margin-bottom: 15px;
  color: #38bdf8;
}

.password-box input {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 18px;
  background: #0f172a;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

#generateBtn {
  background: #22c55e;
  color: #0f172a;
}

#generateBtn:hover {
  background: #16a34a;
}

#copyBtn {
  background: #38bdf8;
  color: #0f172a;
}

#copyBtn:hover {
  background: #0ea5e9;
}

/* =====================
   SETTINGS
===================== */
.settings h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.setting-block {
  margin-bottom: 20px;
}

.length-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: #22c55e;
}

label {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

/* =====================
   STRENGTH METER
===================== */
.strength-meter {
  width: 100%;
  height: 10px;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
}

.strength-bar {
  height: 100%;
  width: 50%;
  background: #facc15; /* default medium */
  transition: 0.3s ease;
}

#strengthText {
  margin-top: 8px;
  font-weight: 600;
  color: #facc15;
}

/* =====================
   HISTORY
===================== */
.history ul {
  list-style: none;
  margin-top: 10px;
}

.history li {
  background: #0f172a;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

/* =====================
   TIPS
===================== */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tip {
  background: #0f172a;
  padding: 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
}

/* =====================
   TOAST
===================== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  color: #0f172a;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: auto;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 22px;
  }
}