/* --- General --- */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
  color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, p {
  margin: 0 0 10px 0;
}



/* --- Sidebar --- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100vh;
  background: #1c1c1c;
  border-right: 1px solid #333;
  box-shadow: 4px 0 30px rgba(255, 192, 203, 0.2);
  transition: left 0.4s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 10px;
}

.sidebar-overlay.active {
  left: 0;
}

/* Sidebar Logo */
#sidebarLogo {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffb6c1;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

#sidebarLogo span {
  display: inline-block;
  animation: floatWave 1.6s ease-in-out infinite;
}

@keyframes floatWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Sidebar Buttons */
.sidebar-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar-btn:hover,
.sidebar-btn.active {
  background: rgba(255, 105, 180, 0.2);
}

/* Footer */
.sidebar-footer {
  bottom: 10px; 
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.6;
  padding: 8px 0;
  background: rgba(20, 20, 20, 0.6);
  border-top: 1px solid rgba(255, 182, 193, 0.3);
  color: #ffb6c1;
}

/* --- Toggle Button --- */
.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #ff69b4;
  border: none;
  color: white;
  font-size: 1.3rem;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
  transition: left 0.4s ease, background 0.3s ease;
}

.sidebar-toggle:hover {
  background: #ff85c1;
}

.sidebar-overlay.active ~ .sidebar-toggle {
  left: 260px;
}

/* --- Main Content --- */
.main-content {
  margin-left: 0;
  padding: 80px 40px;
  transition: margin-left 0.4s ease;
}

.sidebar-overlay.active ~ .main-content {
  margin-left: 240px;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* --- Input & Output --- */
textarea, select, input {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px 0;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2c2c2c;
  color: #fff;
}

button#generate {
  background: #ff69b4;
  border: none;
  padding: 12px 20px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button#generate:hover {
  background: #ff85c1;
}

.output-box {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(255, 105, 180, 0.2);
}

/* Magical glow background */
.sidebar-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,182,193,0.1), transparent 60%);
  animation: shimmer 6s infinite alternate;
  z-index: -1;
}

@keyframes shimmer {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}
