* {
  padding: 0;
  box-sizing: border-box;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: black !important;
}

.header form,
.header input,
.header button {
  margin-bottom: 0;
}

.header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #aeaeaf;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 10px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.logo {
  flex: 0 1 auto;
  width: clamp(80px, 12vw, 160px);
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
  padding-inline-end: 16px;
}

.header-actions {
  display: flex;
  flex: 2 1 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.new-app-redirect {
  font-size: 12px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  font-weight: bold;
  height: 25px;
  max-width: 100px;
  background: #009933;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  padding: 6px;
  line-height: 1;
  text-decoration: none !important;
  outline: none;
  transition: all 0.15s ease-in-out;
}

  .new-app-redirect,
  .new-app-redirect:focus,
  .new-app-redirect:active,
  .new-app-redirect:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .new-app-redirect:active {
    background-color: #a00d24;
    border-color: #e0e0e0;
    transform: scale(0.95);
  }

.new-app-plus {
  display: none;
}

@media (max-width: 599px) {

  .new-app-redirect {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .new-app-text {
    display: none;
  }

  .new-app-plus {
    display: block;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
  }
}

.search-form {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 100px;
  max-width: 300px;
  height: 25px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
}

  .search-form:focus-within {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
  }

.page-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: bold;
  max-width: 85px;
  height: 25px;
  background: #009933;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 15px;
}

.header .search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 8px 12px;
  height: 100%;
  color: black;
  background: transparent;
  font-size: 16px;
}

.search-input,
.search-input:focus,
.search-input:active,
.search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid #ffffff !important;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: right;
  border: none;
  background: transparent;
  padding: 0 12px;
  height: 100%;
  width: 20%;
  cursor: pointer;
}

.search-button img {
    height: 60%;
    width: auto;
}

.header .menu-toggle {
  display: none !important;
}

.menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-top: 4px;
}

  .menu span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
  }

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 40%;
  background: #aeaeaf;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

@media (max-width: 599px) {
  .nav {
    width: 120px;
  }
}

@media (min-width: 600px) and (max-width: 1000px) {
  .nav {
    width: 250px;
  }
}

@media (min-width: 1001px) {
  .nav {
    width: 400px;
  }
}

  .nav a {
    padding: 15px;
    color: white;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

    .nav a:hover {
      background: #9d9d9e;
    }

.menu-toggle:checked ~ .nav {
  max-height: 350px;
}

.tools-toggle {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: #009933;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.menu-tools-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

  .menu-tools-content.open {
    max-height: 2000px;
  }

  .menu-tools-content img {
    max-width: 100%;
    height: auto;
  }

.menu-tools {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
}

.tools-inner {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .tools-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tools-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  border: 4px solid #253353;
}

.tools-section textarea {
    width: 100%;
    height: 75px;
}
