:root {
  --bg: #f9f9f9;
  --text: #1a1a1a;
  --primary: #333;
  --accent: #777;
  --card: #fff;
}

body.dark {
  --bg: #121212;
  --text: #f0f0f0;
  --primary: #ddd;
  --accent: #555;
  --card: #1f1f1f;
}

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

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.4rem;
}

.menu-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.drawer {
  position: fixed;
  top: 0;
  right: -240px;
  width: 220px;
  height: 100%;
  background-color: var(--primary);
  overflow-x: hidden;
  transition: right 0.3s ease;
  z-index: 999;
  padding-top: 60px;
}

.drawer.open {
  right: 0;
}

.drawer a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid var(--accent);
  font-size: 1rem;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

textarea,
.output {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: var(--card);
  border: 1px solid var(--accent);
  margin-top: 1rem;
  resize: vertical;
  border-radius: 8px;
  color: var(--text);
}

.output {
  min-height: 80px;
  font-family: 'Noto Sans Tagalog', sans-serif;
  letter-spacing: 2px;
  font-size: 1.5rem;
}

button {
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #555;
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  padding: 1rem;
}

h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

a {
  color: lightblue;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.card {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem;
  }

  .menu-btn {
    font-size: 1.3rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  button {
    width: 100%;
  }
}
