/* Navbar + Breadcrumb base styles (BrainForms) */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: var(--degrade-navbar);
  box-shadow: var(--sombra-padrao);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 80px);
  box-sizing: border-box;
  z-index: 1000;
}

/* Corrige sublinhado no logo da navbar para esta pagina */
.navbar-logo,
.navbar-logo:hover,
.navbar-logo:focus,
.navbar-logo:visited,
.navbar-logo span {
  text-decoration: none;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.navbar-logo img {
  width: 85px;
  height: 70px;
}

.navbar-logo span {
  font-size: 28px;
  font-weight: 700;
  color: var(--cor-branco);
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-right: 30px;
}

.navbar-links a {
  position: relative;
  color: var(--cor-branco);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 2px 0;
  transition: all 0.3s ease;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cor-branco);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-profile {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 40vw;
}

.navbar-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  min-width: 0;
}

.navbar-profile-btn:hover {
  background: var(--cor-branco-10);
}

.navbar-profile-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--cor-branco-50);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.profile-name {
  color: var(--cor-branco);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-avatar {
  --ring: 3px;
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--degrade-avatar-navbar);
  box-shadow: var(--sombra-anel);
}

.navbar-avatar img {
  width: calc(100% - (var(--ring) * 2));
  height: calc(100% - (var(--ring) * 2));
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.dropdown-arrow {
  color: var(--cor-branco);
  font-size: 16px;
  transition: transform 0.3s ease;
}

.navbar-profile.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  background: var(--card-main);
  border-radius: 12px;
  box-shadow: var(--sombra-padrao);
  min-width: 220px;
  max-width: 250px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: all 0.3s ease;
  z-index: 2000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--texto-base);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.12s ease, transform 0.12s ease;
}

.dropdown-menu a:hover {
  background: var(--card-main-hover);
  transform: translateX(4px);
}

.dropdown-menu a img {
  width: 24px;
  height: 24px;
}

#perfil {
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-divider {
  height: 1px;
  background: var(--cor-divisor);
  margin: 8px 0;
}

/* Breadcrumb */
.breadcrumb {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 995;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 8px 30px;
  box-sizing: border-box;
  background: var(--degrade-breadcrumb);
  box-shadow: var(--sombra-padrao);
  gap: 0;
}

/* Lista */
.breadcrumb .crumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  list-style: none; /* remove bolinhas */
  margin: 0;
  padding-left: 0;
  flex: 1;
  box-sizing: border-box;
  color: var(--cor-branco);
  overflow-x: auto; /* permite rolar se ficar grande */
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 16px;
  font-weight: 600;
}

.breadcrumb .crumbs::-webkit-scrollbar {
  display: none;
}

/* Separador correto */
.breadcrumb .crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--breadcrumb-separador);
}

/* Itens */
.breadcrumb .crumbs li {
  display: flex;
  align-items: center;
}

/* Links */
.breadcrumb .crumbs a.item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--breadcrumb-texto);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.12s ease, transform 0.12s ease;
  background: transparent;
}

/* Hover */
.breadcrumb .crumbs a.item:hover {
  background: var(--breadcrumb-fundo-hover);
  color: var(--breadcrumb-texto-hover);
  transform: translateY(-1px);
  box-shadow: var(--sombra-card);
}

/* Item atual na trilha (destaque discreto) */
.breadcrumb .crumbs .item[aria-current="page"] {
  color: var(--breadcrumb-texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--breadcrumb-sublinhado);
}

.breadcrumb .crumbs .item[aria-current="page"]:hover {
  transform: none;
  background: transparent;
 
}

/* Monitor Grande */
@media (min-width: 1440px) {
  .navbar {
    height: 100px;
  }

  .navbar-logo img {
    width: 95px;
    height: 85px;
  }

  .navbar-logo span {
    font-size: 32px;
  }

  .navbar-avatar {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 22px;
  }

  .dropdown-menu {
    min-width: 220px;
    max-width: 240px;
    top: 70px;
  }

  .breadcrumb .crumbs {
    font-size: 18px;
  }

  .breadcrumb .crumbs li + li::before {
    margin: 0 9px;
  }

 
}


/* Tablet Grande */
@media (max-width: 1024px) {
  .navbar-links a{
    font-size: 16px;
  }

  .navbar {
    height: 100px;
  }

  .navbar-logo img {
    width: 85px;
    height: 80px;
  }

  .navbar-logo span {
    font-size: 28px;
  }

  .navbar-profile {
    gap: 10px;
  }

  .navbar-profile-btn {
    gap: 10px;
  }

  .navbar-avatar {
    width: 75px;
    height: 75px;
  }

  .profile-name {
    font-size: 22px;
  }

  .dropdown-menu {
    min-width: 200px;
    max-width: 230px;
  }

  .breadcrumb .crumbs {
    font-size: 17px;
    padding-left: 0px;
    padding-right: 20px;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .breadcrumb .crumbs a.item {
    padding: 6px 14px;
    white-space: nowrap;
    line-height: 1.2;
    flex: 0 0 auto;
  }

  .breadcrumb .crumbs li + li::before {
    margin: 0 7px;
  }
    


}

/* Tablet Pequeno */
@media (max-width: 768px) {

  .navbar-links{
    gap: 15px;
    margin-right: 5px;
  }

    .navbar-links a {
      font-size: 14px;
    }


    .navbar {
      height: 90px;
    }

    .navbar-logo img {
      width: 75px;
      height: 70px;
    }

    .navbar-logo span {
      font-size: 22px;
    }

    .navbar-profile {
      gap: 8px;
    }

    .navbar-profile-btn {
      gap: 8px;
    }

    .navbar-avatar {
      width: 65px;
      height: 65px;
    }

    .profile-name {
      font-size: 18px;
    }

      .dropdown-menu a {
        padding: 10px 14px;
        font-size: 16px;
        gap: 8px;
      }

   .breadcrumb .crumbs {
      font-size: 15.5px;
      padding-left: 0px;
      padding-right: 10px;
      white-space: nowrap;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
    }

    .breadcrumb .crumbs a.item {
      padding: 4px 8px;
      white-space: nowrap;
      line-height: 1.2;
      flex: 0 0 auto;
    }

    .breadcrumb .crumbs li + li::before {
      margin: 0 6px;
    }

}

/* Tamanhos de telas Especificos (evitar bugs) */
@media (max-width: 580px) {

  .navbar-links{
    display: none;
  }

  .navbar {
    height: 70px;
    padding: 0 12px;
  }

  .navbar-logo img {
    width: 60px;
    height: 55px;
  }

  .navbar-logo span {
    font-size: 16px;
  }

  .navbar-profile {
    gap: 6px;
  }

  .navbar-profile-btn {
    gap: 6px;
  }

  .navbar-avatar {
    width: 50px;
    height: 50px;
    --ring: 2px;
  }

  .profile-name {
    font-size: 14px;
  }

  .breadcrumb .crumbs{
    font-size: 14px;
  }

  .breadcrumb .crumbs a.item{
    padding-left: 0px;
    padding-right: 4px;
  }

  .dropdown-menu a{
    font-size: 12px;
  }

  .dropdown-menu {
    left: auto;                
    right: 0;                    
    transform: translateY(-10px);
  }

  .dropdown-menu.show {
    transform: translateY(0); 
  }

  .breadcrumb .crumbs li + li::before {
    margin: 0 5px;
  }


}


/* Mobile */
@media (max-width: 480px) {
  .navbar {
    height: 70px;
    padding: 0 16px;
  }

  .navbar-logo {
    gap: 8px;
  }

  .navbar-logo img {
    width: 55px;
    height: 50px;
  }

  .navbar-logo span {
    font-size: 16px;
  }

  .navbar-avatar {
    width: 45px;
    height: 45px;
    --ring: 2px;
  }

  .profile-name {
    font-size: 12px;
  }

  .dropdown-arrow {
    font-size: 12px;
  }

  .dropdown-menu {
    top: calc(100% + 8px);
    min-width: 150px;
    max-width: 200px;
    padding: 2px;
    border-radius: 10px;
  }

  .dropdown-menu a {
    padding: 8px 12px;
    font-size: 10px;
    gap: 8px;
  }

  .breadcrumb {
    top: 80px;
    padding: 6px 8px;
    width: 100%;
  }

  .breadcrumb .crumbs {
    font-size: 12px;
    padding-left: 0px;
    padding-right: 2px;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .breadcrumb .crumbs a.item {
    padding: 5px 6px;
    white-space: nowrap;
    line-height: 1.2;
    flex: 0 0 auto;
  }


  .accordion-section {
    margin-top: 34px;
  }

  .accordion-header h3 {
    margin-top: 6px;
  }

  .accordion-arrow {
    margin-top: 6px;
  }

  .breadcrumb .crumbs li + li::before {
    margin: 0 4px;
  }
}

/* Tamanhos de telas Especificos (evitar bugs) */
@media (max-width: 380px) {
 
.navbar {
    height: 60px;
    padding: 0 12px;
  }

.navbar-logo img {
    width: 45px;
    height: 40px;
  }

.navbar-logo span {
    font-size: 14px;
  }

.navbar-avatar {
    width: 38px;
    height: 38px;
    --ring: 2px;
  }

.profile-name {
    font-size: 10px;
  }

.dropdown-arrow {
    font-size: 10px;
  }

  .dropdown-menu a {
    padding: 6px 10px;
    font-size: 10px;
    gap: 6px;
  }

  .breadcrumb {
    padding: 4px 6px;
  }

  .breadcrumb .crumbs {
    font-size: 11px;
  }

  .breadcrumb .crumbs a.item {
    padding: 4px 6px;
  }

     
}
