/* Header navigation for tools pages */

/* Page wrapper ensures footer sits at bottom */
.page-wrapper {
  min-height: 100vh;       /* full viewport height */
  display: flex;
  flex-direction: column;  /* stack header, main, footer vertically */
}
main {
  flex: 1;                 /* main content expands to fill space */
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* side by side */
  gap: 20px;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.menu > li > a:hover {
  background: var(--accent-hover);
  color: var(--text);
}

/* Submenu hidden by default */
.submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--accent);
  padding: 10px 0;
  list-style: none;
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}
.submenu li a {
  display: block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.submenu li a:hover {
  background: var(--accent-hover);
  color: var(--text);
}

/* Show submenu on hover */
.menu li:hover > .submenu {
  display: block;
}

/* Active tab highlight */
.menu a.active {
  background: var(--accent-hover);
  color: var(--text);
  border-radius: 4px;
}

/* Footer */
.footer {
  background: var(--accent);
  color: white;
  width: 100%;
  min-height: 60px;        /* same thickness as header */
  display: flex;
  align-items: center;     /* vertically center text */
  justify-content: center; /* horizontally center text */
  padding: 0 24px;
  box-sizing: border-box;
  margin-top: auto;        /* pushes footer to bottom when content is short */
}

.footer-inner {
  text-align: center;
  width: 100%;
}

.footer a {
  color: white;
  text-decoration: underline;
}