* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #1c1c1e;
  color: #f5f5f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #0a84ff;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

nav {
  display: flex;
  justify-content: center;
  background-color: #2c2c2e;
  padding: 0.5rem;
  flex-wrap: wrap;
}

nav button {
  background-color: transparent;
  border: none;
  color: #f5f5f7;
  padding: 0.8rem 1.2rem;
  margin: 0 0.3rem;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.3s ease;
}

nav button:hover {
  background-color: #3a3a3c;
}

nav button.active {
  border-bottom: 2px solid #0a84ff;
  color: #0a84ff;
  font-weight: bold;
}

.tab {
  display: none;
  padding: 2rem;
  max-width: 700px;
  margin: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab.active {
  display: block;
  opacity: 1;
}

form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="email"],
input[type="password"],
input[type="url"] {
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background-color: #2c2c2e;
  color: #f5f5f7;
  font-size: 1rem;
}

input::placeholder {
  color: #a1a1a1;
}

.btn {
  background-color: #0a84ff;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0066cc;
}

#passwordStrength,
#crackingTime {
  font-size: 1rem;
  padding: 0.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 1rem;
  background-color: #2c2c2e;
  color: #a1a1a1;
  font-size: 0.9rem;
}

footer a {
  color: #0a84ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
}
