body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
}

/* --- Sidebar --- */
.side-bar {
  width: 272px;
  background: rgba(121, 12, 230, 0.05);
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid rgba(121, 12, 230, 0.1);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 10;

  /* --- ADICIONE AS LINHAS ABAIXO --- */
  overflow-y: auto; /* Ativa a rolagem vertical quando o conteúdo não couber no Y */
  scrollbar-width: thin; /* Deixa a barra fina em navegadores como Firefox */
  scrollbar-color: rgba(121, 12, 230, 0.3) transparent; /* Cor do scroll sutil (Roxa) */
}

.sidebar-top {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.side-bar .logo {
  width: 76px;
  object-fit: contain;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-title {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin: 15px 0 8px 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.menu-item img {
  width: 28px;
}

.menu-item:hover, .menu-item.active {
  background-color: rgba(121, 12, 230, 0.1);
  color: #790ce6;
}

.menu-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 15px 10px;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-usu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.usuario-foto {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
}

.nome-usuario {
  font-size: 14px;
  font-weight: 500;
}

.log-out-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
}

/* --- Main Content & Topbar --- */
.main-content {
  flex: 1;
  margin-left: 272px;
  display: flex;
  flex-direction: column;
}

.top-search-bar {
  background-color: #790ce6;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.pesquisa-wrapper {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 35px;
  padding: 6px 10px 6px 20px;
  width: 100%;
  max-width: 650px;
  height: 52px;
  justify-content: space-between;
}

.icone-lupa-input {
  width: 20px;
  opacity: 0.5;
}

.input-busca-real {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  width: 100%;
  font-style: italic;
  font-weight: 300;
}

.btn-filtrar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #790ce6;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  cursor: pointer;
  padding: 5px 15px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.icone-filtro { width: 20px; }

.usuario-foto-top {
  width: 45px;
  height: 45px;
  border-radius: 5px;
  object-fit: cover;
}

/* --- Layout da Busca (Colunas) --- */
.buscar-vagas-container {
  display: flex;
  padding: 30px 40px;
  gap: 40px;
  background-color: #ffffff;
  min-height: calc(100vh - 90px);
}

/* --- Coluna Esquerda (Lista e Filtros) --- */
.lista-vagas-coluna {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.resultados-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resultados-titulo {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.resultados-sub {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.filtros-rapidos-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filtros-titulo {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.filtros-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filtro-tag {
  background-color: #e6e6e6;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.filtro-tag:hover {
  background-color: #d4d4d4;
}

.filtro-tag input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.vagas-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Vaga Individual */
.vaga-card-busca {
  background: #ffffff;
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vaga-card-busca:hover {
  border-color: rgba(121, 12, 230, 0.4);
}

.vaga-card-busca.active {
  border-color: #790ce6;
  box-shadow: 0 4px 15px rgba(121, 12, 230, 0.1);
}

.card-busca-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.card-busca-textos {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-busca-titulo {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #000;
}

.card-busca-empresa {
  font-size: 15px;
  color: #333;
}

.card-busca-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 5px;
}

.card-busca-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
}

.card-busca-meta img {
  width: 18px;
}

/* --- Coluna Direita (Detalhes) --- */
.detalhes-vaga-coluna {
  flex: 1;
  background-color: #f7f7f9; /* Fundo cinza claro idêntico à imagem */
  border-radius: 16px;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.detalhes-top-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 30px 0;
  color: #000;
}

.detalhes-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.detalhe-logo-gigante {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 10px;
}

.detalhe-cargo {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #000;
}

.detalhe-info-linha {
  font-size: 15px;
  color: #444;
  margin: 0;
}

.detalhe-divisor {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.15);
  margin: 25px 0;
  width: 100%;
}

.detalhe-bloco-texto {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detalhe-secao-titulo {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #000;
}

.detalhe-texto-p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.btn-container-center {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.btn-candidatar-agora {
  background-color: #790ce6;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  height: 48px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-candidatar-agora:hover {
  background-color: #6109b8;
}

.seta-btn-icon {
  width: 18px;
  filter: brightness(0) invert(1);
}

/* ========================================= */
/* RESPONSIVIDADE (MEDIA QUERIES)            */
/* ========================================= */

/* Telas Médias (Tablets) - Abaixo de 1024px */
@media (max-width: 1024px) {
  /* Empilha a lista de vagas e os detalhes da vaga */
  .buscar-vagas-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

.lista-vagas-coluna, .detalhes-vaga-coluna {
    flex: none;
    width: 100%;
  }

/* Reduz um pouco o padding do header para ganhar espaço */
  .top-search-bar {
    padding: 0 20px;
  }
}

/* Telas Pequenas (Celulares) - Abaixo de 768px */
@media (max-width: 768px) {
  /* Move o Sidebar para fora da tela (Off-canvas) */
  .side-bar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

/* Remove a margem esquerda do conteúdo principal */
  .main-content {
    margin-left: 0;
  }

/* Ajusta a barra de pesquisa superior */
  .pesquisa-wrapper {
    padding: 6px 10px;
  }

.input-busca-real {
    font-size: 14px; /* Diminui levemente a fonte no mobile */
  }

.btn-filtrar span {
    display: none; /* Esconde a palavra "Filtrar", deixa só o ícone para poupar espaço */
  }

/* Ajusta o card da vaga para não espremer os itens */
  .vaga-card-busca {
    flex-direction: column;
    align-items: center; /* Centraliza no celular */
    text-align: center;
    gap: 15px;
  }

.card-busca-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

/* Ajusta o painel de detalhes da vaga */
  .detalhes-vaga-coluna {
    padding: 25px 20px;
  }
}