/* Área Principal da Barra */
.top-bar-area {
  background-color: #2b4971;
  color: #fff;
  font-family: "Rawline", "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1005;
}

/* --- DESKTOP --- */

/* Wrapper Desktop */
.top-bar-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

/* Lista de Links Desktop */
.top-bar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* Itens da lista Desktop */
.top-bar-links li {
  position: relative;
  padding-right: 12px;
  margin-right: 12px;
}

/* Linha separadora vertical */
.top-bar-links li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Remover linha do último item */
.top-bar-links li:last-child {
  padding-right: 0;
  margin-right: 0;
}
.top-bar-links li:last-child::after {
  display: none;
}

.top-bar-links li a {
  color: #fff !important;
  text-decoration: none;
  opacity: 0.9;
}
.top-bar-links li a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- MOBILE --- */

.top-bar-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  overflow: visible;
  position: relative;
  z-index: 1010;
}

/* Lado Esquerdo Mobile (Botão Auth) */
.top-bar-mobile-left {
  flex-shrink: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  position: relative;
  z-index: 1020;
}

/* Lado Direito Mobile (Container Flex) */
.top-bar-mobile-right {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
}

/* Rolagem Horizontal */
.top-bar-scroll-menu {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  scrollbar-width: none;
}
.top-bar-scroll-menu::-webkit-scrollbar {
  display: none;
}

.top-bar-scroll-menu a {
  color: #fff !important;
  margin-right: 15px;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* Separador vertical no scroll mobile */
.top-bar-scroll-menu a::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
}

.top-bar-scroll-menu a:last-child::after {
  display: none;
}

/* Botão Expandir */
.top-bar-expand-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  height: 100%;
}

/* --- Painel Expandido (Dropdown) --- */
.top-bar-expanded-panel {
  background-color: #233c5e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

/* Wrapper das colunas (Flexbox) */
.top-bar-cols-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* Listas (Colunas) */
.top-bar-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1; /* 50% largura cada */
}

/* Borda separadora entre colunas */
.top-bar-col-list:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Itens da Lista Expandida */
.top-bar-col-list li {
  padding-left: 20px;
  padding-right: 10px;
}

.top-bar-col-list li a {
  color: #fff !important;
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-col-list li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: underline;
}
