header {
  height: 57px;
  background-color: white;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #eee;
  align-items: center;
  padding: 0 24px;
  width: 100%;
}

.headerLogo {
  width: 300px;
  height: 50px;
  transition: .2s all;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("https://pobresettings.com/public/assets/logo_white.png");
}

@media (prefers-color-scheme: light) {
  .headerLogo {
    background-image: url("https://pobresettings.com/public/assets/logo.png");
  }
}

.headerItems {
  width: 100%;
}

.headerItems,
.headerItemsContainer {
  display: flex;
  gap: 16px;
}

.headerItemsContainer li,
.headerItemsContainer li a {
  list-style: none;
  padding: 4px;
  text-decoration: none;
  color: black;
  border-radius: 4px;
  font-size: 14px;
}

.headerItemsContainer li:hover {
  background: #f0effb;
}

.searchBar {
  position: relative;
}

.searchBar form {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.searchBar,
.searchBar form,
.searchBar form input {
  background: #f1f1f2;
  height: 40px;
  border-radius: 8px;
}

.searchBar form input[type="search"] {
  width: 256px;
  border: none;
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 14px;
  transition: width 0.3s ease-in-out;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.searchBar form input[type="search"]:focus {
  border: 0px solid;
  outline: none;
}

.searchBar form input[type="submit"] {
  background: url('https://pobresettings.com/public/assets/search.svg') no-repeat center center;
  background-size: 30px 30px;
  border: none;
  width: 56px;
  height: 100%;
  cursor: pointer;
}

@media (prefers-color-scheme: light) {
  .searchBar form input[type="submit"]:hover {
    background-color: #e5e5e6 !important;
  }
}

.authOptions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.authOptions a {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: black;
  border-radius: 8px;
}

.authOptions .login {
  border: 1px solid #eee;
}

.authOptions .login:hover {
  border: 1px solid #1b46f5;
  color: #1b46f5;
}

.authOptions .registro {
  background: #1b46f5;
  color: white;
}

.authOptions .registro:hover {
  filter: brightness(90%);
}

.searchAndAuth {
  display: flex;
  gap: 16px;
}

.hamburguerMenu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0;
}

.line {
  fill: none;
  stroke: black;
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

.line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}

.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}

.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

.mobileMenu {
  position: fixed;
  top: 57px;
  /* Altura do header */
  left: 0;
  width: 100%;
  height: calc(100vh - 57px);
  background: white;
  z-index: 998;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobileMenu.active {
  transform: translateX(0);
}

.mobileMenuItems {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
}

.mobileMenuItems li {
  list-style: none;
}

.mobileMenuItems li a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  display: block;
  padding: 8px 0;
}

.mobileSearch {
  padding: 0 24px 24px 24px;
}

.mobileSearch form {
  background: #f1f1f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  height: 40px;
}

.mobileSearch input[type="search"] {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.mobileSearch input[type="submit"] {
  background: url('https://pobresettings.com/public/assets/search.svg') no-repeat center center;
  background-size: 30px 30px;
  border: none;
  width: 56px;
  height: 100%;
  cursor: pointer;
}

.mobileAuth {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobileAuth a {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.mobileAuth .login {
  border: 1px solid #eee;
  color: black;
}

.mobileAuth .registro {
  background: #1b46f5;
  color: white;
}

@media (max-width: 1650px) {
  .searchBar form input[type="search"] {
    width: 150px;
  }
}

@media (max-width: 1500px) {
  header {
    justify-content: space-between;
  }

  .headerItems {
    display: none;
  }

  .hamburguerMenu {
    display: flex;
  }
}

@media (max-width: 978px) {

  .searchBar,
  .authOptions {
    display: none;
  }

  .hamburguerMenu {
    display: flex;
  }
}

@media (max-width: 400px) {
  header {
    padding: 0 12px;
  }

  .headerLogo {
    width: 200px;
    object-fit: contain;
  }
}

.searchDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

.searchResults {
  padding: 8px;
}

.searchResult {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.searchResult:hover {
  background: #F3F4F6;
}

.searchResult img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.searchResult .resultInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.searchResult .resultName {
  font-weight: 600;
  color: #1F2937;
}

.searchResult .resultType {
  font-size: 12px;
  color: #6B7280;
}

@media (prefers-color-scheme: dark) {
  header {
    background-color: #181818 !important;
    border-color: #242424 !important;
  }

  .headerItemsContainer li,
  .headerItemsContainer li a {
    color: #ededed !important;
  }

  .headerItemsContainer li:hover {
    background: #242424 !important;
  }

  .searchBar,
  .searchBar form,
  .searchBar form input[type="search"] {
    background: #242424 !important;
    color: #ededed !important;
  }

  .searchBar form input[type="submit"] {
    filter: brightness(0) invert(100%);
  }
  
  .hamburguerMenu svg {
    filter: brightness(0) invert(100%);
  }

  .mobileMenu {
    background-color: #181818 !important;
  }

  .mobileMenuItems li a {
    color: #ededed !important;
  }

  .mobileSearch form {
    background-color: #242424 !important;
  }

  .mobileSearch form input[type="search"] {
    color: #ededed !important;
  }

  .mobileSearch form input[type="submit"] {
    filter: brightness(0) invert(100%);
  }
  
  
  .dropdown-content {
    background-color: #242424 !important;
  }

  .dropdown-content a:hover {
    background-color: #292929 !important;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px !important;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  cursor: pointer;
}