/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(270deg, #1c1c1c, #2a2a2a, #1c1c1c);
  background-size: 600% 600%;
  animation: waterflow 20s ease infinite;
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

/* Mobile fix */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Background animation */
@keyframes waterflow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; left: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
}

.sidebar.open {
  width: 250px;
}

.sidebar a {
  padding: 12px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #ccc;
  display: block;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Hamburger */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px;
  background: white;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tagline {
  font-weight: 600;
  color: #ccc;
  margin-bottom: 1rem;
}

/* Generator Box */
.generator-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

/* Input Group */
.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#passwordOutput {
  width: 70%;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}

#copyBtn {
  padding: 10px 15px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#copyBtn:hover {
  background: #005fcc;
}

/* Options */
.options {
  margin-top: 1.5rem;
  text-align: left;
}

#lengthSlider {
  width: 100%;
  margin: 0.5rem 0 1rem;
}

.checkboxes label {
  display: block;
  margin: 0.3rem 0;
}

/* Generate Button */
.generate-btn {
  margin-top: 1rem;
  padding: 12px 25px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.generate-btn:hover {
  background: #005fcc;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  text-align: center;
  color: #ccc;
}

.site-footer hr {
  border: none;
  height: 1px;
  background: #555;
  margin: 0 20px 10px 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 0.9rem;
  }

  .generator-box {
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
  }

  #passwordOutput {
    width: 100%;
  }

  #copyBtn, .generate-btn {
    width: 100%;
    padding: 8px 0;
    font-size: 0.9rem;
  }
}