body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

/* ===== HEADER / NAV ===== */
.top-nav {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 56px;
}

.site-title {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}

.site-title i {
  color: #4caf50;
  font-size: 20px;
}

.site-title:hover {
  color: white;
  opacity: 0.85;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.menu-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0 14px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.menu-link:hover {
  color: white;
  background: none;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.menu-link.active {
  color: white;
  border-bottom-color: #4caf50;
  background: none;
}

.menu-link i {
  font-size: 15px;
}

.conversion-btn {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

.conversion-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  color: white;
  border-color: rgba(76, 175, 80, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.conversion-btn i {
  font-size: 14px;
}

.logout-btn {
  color: rgba(255, 100, 100, 0.7);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  margin-left: 4px;
}

.logout-btn:hover {
  color: #ff6464;
  background: rgba(255, 100, 100, 0.1);
}

/* Hamburger toggle */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 0;
  margin-top: auto;
  border-top: 3px solid #4caf50;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.footer-brand i {
  color: #4caf50;
  margin-right: 4px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu.open {
    display: flex;
  }

  .menu-link {
    height: auto;
    padding: 12px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 15px;
  }

  .menu-link.active {
    border-bottom: none;
    border-left-color: #4caf50;
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-link:hover {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
  }

  .conversion-btn {
    margin: 4px 20px;
    justify-content: center;
  }

  .logout-btn {
    padding: 12px 24px;
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}
