/* ==== GLOBAL BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #000814, #001d3d);
  color: #dbe9ff;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* ==== NAVBAR (Desktop + Mobile) ==== */
.navbar {
  width: 100%;
  background: rgba(15, 25, 45, 0.85);
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: #4da6ff;
  white-space: nowrap;
}

/* ----- Desktop Menu ----- */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #d6e6ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4da6ff;
}

/* ----- Mobile Hamburger ----- */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: #4da6ff;
  cursor: pointer;
}

/* ----- Mobile Layout ----- */
@media (max-width: 820px) {

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(15, 25, 45, 0.97);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 0;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* ==== Button disabled ==== */
.proceed-btn.disabled,
.proceed-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==== Strength + Warning Text ==== */
.strength-row {
  position: relative;
  width: 100%;
  height: 22px;
  margin: 5px 0 10px;
}

#strengthText {
  position: absolute;
  left: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.warning {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #ffb84d;
  font-weight: 600;
  display: none;
}

.warning.show {
  display: inline;
}

/* ===== TABLE FIX (Centered & Mobile Safe) ===== */
table {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  border-collapse: collapse;
}

@media (max-width: 700px) {
  table {
    width: 95%;
    font-size: 0.9rem;
  }
  td, th {
    padding: 6px;
    word-break: break-word;
  }
}
@media (max-width: 800px) {
  .row-cards {
    flex-direction: column !important;
    gap: 1rem;
  }

  .breach-card,
  .entropy-card {
    width: 100% !important;
  }
}
@media (min-width: 1000px) {
  .app-container {
    display: flex;
    flex-direction: row;
  }
}
