/* Shared styles for all tools/pages (e.g., layout, typography, buttons, etc.) */

body {
  background: #f7fbfc;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Header styles */
.green-header {
  position: relative;
  z-index: 100;
  text-align: center;
}

.random-header-content {
  padding-top: 2rem;
}

.random-subtitle {
  color: #7a8a99;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
}

/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.66em;
  padding-bottom: 0.66em;
  position: relative;
  z-index: 101;
}

.navbar .logo {
  display: inline-block;
  vertical-align: middle;
}

.navbar .brand-text {
  display: inline-block;
  vertical-align: middle;
  color: #fff !important;
  margin-left: 2px;
  font-weight: 900;
  font-size: 1.32rem;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #b2f5ea !important;
}

.navbar .nav-center {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

/* Hamburger styles */
.navbar .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  margin-left: 10px;
}

.navbar .hamburger span {
  display: block;
  height: 4px;
  width: 24px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #37B5A7;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 102;
  padding: 1em 0;
  text-align: center;
  box-shadow: 0 4px 16px #0002;
}

.mobile-menu .nav-link {
  color: #fff !important;
  padding: 0.8em 0;
  font-size: 1.18em;
  font-weight: 600;
  border-bottom: 1px solid #4fd1c5;
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* Responsive styles */
@media (max-width: 900px) {
  .navbar .nav-center {
    display: none !important;
  }
  .navbar .hamburger {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Footer styles */
.footer {
  background: #37B5A7;
  color: #fff;
  padding: 1rem 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
}

.footer-links {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Language dropdown fix */
#lang-select, #mobile-lang-select {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid #4fd1c5;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  appearance: auto; /* Show the default dropdown arrow */
  -webkit-appearance: menulist; /* For Safari */
  -moz-appearance: menulist; /* For Firefox */
}

#lang-select option, #mobile-lang-select option {
  background-color: white;
  color: #333;
  padding: 8px;
}
