:root {
  --primary-bg: #fff;
  --primary-fg: #175d1a;
  --secondary-bg: #e9f8ef;
  --accent: #147a2b;
  --accent-hover: #175d1a;
  --border: #b3e6c5;
  --footer-bg: #147a2b;
  --footer-fg: #fff;
}

/* Hamburger and Sidebar styles */
.hamburger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  font-size: 2rem;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  border-right: 2px solid var(--accent);
  box-shadow: 2px 0 8px rgba(20,122,43,.08);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  z-index: 1002;
  padding: 2rem 1.2rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#sidebar.open {
  transform: translateX(0);
}

#sidebar nav .logo {
  font-size: 1.17rem;
  font-weight: bold;
  color: var(--accent);
  display: block;
  text-decoration: none;
  margin-bottom: 2rem;
}

#sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar nav ul li {
  margin-bottom: 1.1rem;
}

#sidebar nav ul li a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  transition: background .15s;
  display: block;
}

#sidebar nav ul li a:hover,
#sidebar nav ul li a.active {
  background: var(--secondary-bg);
  color: var(--accent-hover);
}

#sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,122,43,0.08);
  z-index: 1000;
  display: none;
}

/* Show overlay when sidebar is open */
#sidebar.open ~ #sidebar-overlay {
  display: block;
}

/* Desktop: show sidebar always, no hamburger */
@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
  #sidebar {
    position: sticky;
    transform: none !important;
    box-shadow: none;
    width: 220px;
    min-width: 180px;
    border-right: 2px solid var(--accent);
    top: 0;
    height: 100vh;
    z-index: 10;
    padding-top: 3rem;
    left: 0;
    background: #fff;
  }
  #sidebar-overlay {
    display: none !important;
  }
  main, .main-content {
    margin-left: 220px !important;
  }
}

main, .main-content {
  transition: margin-left 0.25s cubic-bezier(.4,0,.2,1);
  margin-left: 0;
  max-width: 900px;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

@media (min-width: 900px) {
  main, .main-content {
    margin-left: 220px;
  }
}

/* Utility classes and layout */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--primary-fg);
  min-height: 100vh;
}

section {
  margin-bottom: 2rem;
}

.intro h1, .about h1, .howto h1, .faq h1, .disclaimer h1, .generator-tool h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.features ul {
  margin: 0;
  padding-left: 1.2rem;
}

.actions {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.cta, .cta.secondary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  transition: background 0.2s;
}

.cta.secondary {
  background: var(--secondary-bg);
  color: var(--accent);
  border: 1px solid var(--border);
}

.cta:hover, .cta.secondary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.generator-tool form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: flex-end;
}

.generator-tool label {
  min-width: 120px;
}

.generator-tool select, .generator-tool button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 1rem;
}

.generator-tool button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.generator-tool button:disabled {
  background: #bbb;
  cursor: not-allowed;
}

.key-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--secondary-bg);
  border-radius: 4px;
  padding: 1rem;
  font-size: 1.2rem;
  margin: 1rem 0;
  word-break: break-all;
}

#copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.copy-confirm {
  color: green;
  margin-top: 0.5rem;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.adsense {
  margin: 2rem 0;
  text-align: center;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.footer-content a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  main, .footer-content {
    max-width: 100vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .cta, .cta.secondary {
    width: 100%;
    text-align: center;
  }
}