 /* Reset and base */
 * {
  box-sizing: border-box;
}
body{
  font-family: Arial,sans-serif;
  
}


button {
  cursor: pointer;
  font-family: Arial, sans-serif;
  background: none;
  border: none;
  padding: 0;
}

/* Container and layout */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e2e8f0; /* Tailwind gray-200 */
  position: relative;
  z-index: 30;
  background-color: #fff;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
}
.logo img {
  width: 30px;
  height: 30px;
}
.logo-text {
  font-weight: 600;
  font-size: 1.125rem; /* text-lg */
  color: #000000; /* Tailwind gray-900 */
}
nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem; /* text-sm */
  font-weight: 400;
  color: #000; /* gray-600 */
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
}
nav a {
  position: relative;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
nav a:hover,
nav a:focus {
  color: #1a202c; /* gray-900 */
  outline: none;
}
nav a .fa-caret-down {
  margin-left: 0.25rem;
  font-size: 1rem;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  min-width: 160px;
  display: none;
  flex-direction: column;
  z-index: 40;
}
.dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #000;
  white-space: nowrap;
  user-select: none;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background-color: #f0fdfa; /* teal-50 */
  color: #3742a8; /* teal-500 */
  outline: none;
}

/* Show dropdown on hover/focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* Mobile menu button */
.menu-button {
  display: none;
  font-size: 1.5rem;
  color: #4a5568;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 40;
}

/* Sidebar menu */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* hidden by default */
  width: 260px;
  height: 100vh;
  background: white;
  border-right: 1px solid #e2e8f0;
  box-shadow: 2px 0 8px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  transition: left 0.3s ease;
  z-index: 35;
}
.sidebar.open {
  left: 0;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.sidebar-header .logo {
  gap: 0.5rem;
}
.sidebar-header .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
}
.close-button {
  font-size: 1.5rem;
  color: #4a5568;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.sidebar a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #4a5568;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  user-select: none;
}
.sidebar a:hover {
  background-color: #f0fdfa; /* teal-50 */
  color: #14b8a6; /* teal-500 */
}

/* Sidebar dropdown */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
}
.sidebar-dropdown > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #4a5568;
  background: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.25rem;
}
.sidebar-dropdown > button:hover,
.sidebar-dropdown > button:focus {
  background-color: #f0fdfa;
  color: #14b8a6;
  outline: none;
}
.sidebar-dropdown > button .fa-caret-down {
  transition: transform 0.3s ease;
}
.sidebar-dropdown.open > button .fa-caret-down {
  transform: rotate(180deg);
}
.sidebar-dropdown-menu {
  display: none;
  flex-direction: column;
  margin-left: 1rem;
  margin-top: 0.25rem;
}
.sidebar-dropdown.open > .sidebar-dropdown-menu {
  display: flex;
}
.sidebar-dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #4a5568;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  user-select: none;
}
.sidebar-dropdown-menu a:hover,
.sidebar-dropdown-menu a:focus {
  background-color: #f0fdfa;
  color: #14b8a6;
  outline: none;
}

/* Overlay behind sidebar */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 34;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}



/* Responsive */
@media (min-width: 768px) {
  .menu-button {
    display: none;
  }
  nav {
    display: flex !important;
  }
  .sidebar {
    display: none !important;
  }
  .overlay {
    display: none !important;
  }
  main {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-container,
  .output-container {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 767px) {
  nav {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

.logo-link {
  display: flex;
  align-items: center; /* vertically center image and text */
  gap: 10px; /* space between image and text */
  text-decoration: none; /* remove underline */
}

.logo-image {
  display: block;
  /* Remove margin-top; use flex alignment instead */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000; /* teal or your desired color */
}