/* ----------------------- */
/* CONFIGURAÇÕES GERAIS */
/* ----------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------------------- */
/* MENU SUPERIOR */
/* ----------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
}

.header .logo {
    font-size: 24px;
    font-weight: 400;
    color: #9B111E;
}

.header img {
    max-height: 15px;
}

/* ----------------------- */
/* MENU LATERAL */
/* ----------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000000;
    color: #ffffff;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    padding-top: 80px; /* Aumenta o espaçamento para não ficar colado no topo */
}

/* ----------------------- */
/* ITENS DO MENU */
/* ----------------------- */
.sidebar a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: block;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}

.sidebar a:hover, .sidebar a:focus {
    background-color: #9B111E;
    outline: none;
    color: #ffffff !important;
}

/* ----------------------- */
/* BEM-VINDX (INFO DO USUÁRIO) */
/* ----------------------- */
.user-info {
    margin-bottom: 10px;
    padding: 5px 0;
    text-align: left;
}

/* Destaca o nome do usuário */
.user-info p {
    line-height: 1.2; /* Reduz o espaçamento entre as linhas */
    margin-bottom: 2px; /* Diminui a margem inferior */
}

/* Formatação do Departamento */
.user-info .department {
    font-size: 10px;
    color: #808080;
    margin-top: 0px; /* Remove o espaçamento extra */
}

/* ----------------------- */
/* MENU INTERNO */
/* ----------------------- */
.menu-items {
    flex-grow: 1; /* Faz com que o menu ocupe o espaço necessário */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaçamento entre os itens */
}

/* ----------------------- */
/* BOTÃO LOGOUT */
/* ----------------------- */
.logout {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    background-color: #9B111E;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.logout a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    display: block;
    border-radius: 5px;
    padding: 8px 10px;
}

.logout:hover {
    background-color: #c82333;
}

/* ----------------------- */
/* MENU HAMBÚRGUER */
/* ----------------------- */
.menu-toggle {
    display: none;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    z-index: 1200;
}

/* 🔥 Ajuste do botão "X" no menu lateral */
.close-menu {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1201;
}

/* ----------------------- */
/* MENU MOBILE */
/* ----------------------- */
@media (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
        justify-content: center; /* Centraliza a logo */
        padding: 15px 20px; /* Aumenta o espaço interno */
        height: 60px; /* Mantém o menu superior mais alto */
        position: relative;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px; /* Mantém fixo na esquerda */
        top: 50%;
        transform: translateY(-50%); /* Centraliza verticalmente */
        font-size: 26px; /* Aumenta um pouco o tamanho do ícone */
        z-index: 1200; /* Garante que fica na frente */
    }

    .header .logo {
        font-size: 22px; /* Mantém a logo visível */
        font-weight: 500;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Mantém centralizado */
    }

    .header img {
        display: none; /* Oculta o logo da Almap no mobile */
    }

    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        background-color: #000000;
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        padding-top: 60px; /* Ajusta espaço no topo */
        position: relative;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* 🔥 Agora o "X" para fechar o menu lateral aparece corretamente 🔥 */
    .close-menu {
        display: none;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        color: white;
        cursor: pointer;
    }

    .sidebar.active .close-menu {
        display: block; /* Mostra o "X" apenas quando o menu está aberto */
    }

    .content {
        margin-left: 0;
        margin-top: 70px;
        padding: 15px;
    }
}

/* 🔥 Overlay para bloquear a rolagem da página enquanto o menu está aberto */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1099; /* Fica abaixo do menu, mas acima do conteúdo */
}

/* 🔥 Ajuste do menu lateral para cobrir toda a tela no mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%; /* Agora ocupa toda a largura */
        height: 100vh; /* Agora ocupa toda a altura */
        background-color: #000000;
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        padding-top: 60px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* 🔥 Faz o overlay aparecer quando o menu está aberto */
    .sidebar.active ~ .menu-overlay {
        display: block;
    }

    /* 🔥 Bloqueia a rolagem do body quando o menu está aberto */
    body.menu-open {
        overflow: hidden;
    }
}


/* ----------------------- */
/* AJUSTE PARA O CONTEÚDO */
/* ----------------------- */
.content {
    margin-left: 250px;
    margin-top: 70px; /* Evita sobreposição do conteúdo */
    padding: 20px;
    overflow: auto;
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
        margin-top: 70px; /* Mantém distância do menu superior */
        padding: 15px;
    }
}

/* ---------- CONFIGURAÇÕES GERAIS ---------- */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.hero {
    position: relative;
    height: 100vh;
    background: url('/assets/hero_briefly.webp') center/cover fixed no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

/* Se não precisar de overlay sobre toda a imagem, podemos omiti-lo ou deixar discreto */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Se quiser um leve escurecimento, pode deixar:
  background: rgba(0, 0, 0, 0.3);
  */
  z-index: 1;
}

/* Box translúcida para o conteúdo */
.hero-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px 50px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Título HERO */
.hero-title {
  font-size: 56px;
  font-weight: 100;
  color: #9B111E;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Subtítulo HERO */
.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  max-width: 700px;
  margin: 10px auto 20px;
  color: #000;
}

/* Botão */
.btn-danger {
  background-color: #9B111E;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  transition: background 0.3s ease;
  position: relative;
  z-index: 3;
}
.btn-danger:hover {
  background-color: #800a15;
}

/* ---------- SEÇÕES GERAIS ---------- */
.section {
  padding: 100px 0;
  text-align: center;
}
.light {
  background: #ffffff;
  color: #000;
}
.dark {
  background: #9B111E;
  color: #fff;
}

/* ---------- PARALLAX (Imagens Estáticas) ---------- */
.parallax {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.parallax-image-1 {
  background-image: url('/assets/destaque1_briefly.webp');
}
.parallax-image-2 {
  background-image: url('/assets/destaque2_briefly.webp');
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 5px 0;
  font-size: 8px;
  color: #cccccc;
  background-color: #ffffff;
}
footer a {
  color: #cccccc;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    padding: 20px;
  }
  .hero-box {
    padding: 25px 30px;
    max-width: 90%;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .parallax {
    height: 70vh;
    background-attachment: scroll;
  }
  .section {
    padding: 60px 20px;
  }
}

/* ---------- SEÇÃO COMO FUNCIONA (NOVO DESIGN) ---------- */
.how-it-works-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.how-it-works-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 20px);
    min-width: 250px;
    max-width: 320px;
    margin-bottom: 20px;
}

.how-it-works-card i {
    font-size: 40px;
    color: #9B111E;
    margin-bottom: 15px;
}

.how-it-works-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.how-it-works-card p {
    font-size: 14px;
    color: #555;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 🔥 Ajuste para Mobile 🔥 */
@media (max-width: 768px) {
    .how-it-works-container {
        flex-direction: column;
        align-items: center;
    }

    .how-it-works-card {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }

    .how-it-works-card i {
        font-size: 36px;
    }

    .how-it-works-card h4 {
        font-size: 16px;
    }

    .how-it-works-card p {
        font-size: 13px;
    }
}

/* 🔥 Melhorando a Tabela 🔥 */
.table td, .table th {
    vertical-align: middle;
    text-align: center;
    padding: 12px;
}

/* 🔥 Ajuste nos botões dentro da tabela 🔥 */
.table .btn-group {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.table .btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 Ícones dentro dos botões menores 🔥 */
.table .btn-sm i {
    font-size: 14px;
}

/* 🔥 Botão de Ativar/Desativar com Ícone de Proibido 🚫 */
.btn-danger .fa-ban {
    color: white;
}

.btn-success .fa-check-circle {
    color: white;
}

/* 🔥 Responsividade dos botões na tabela 🔥 */
@media (max-width: 768px) {
    .table .btn-group {
        flex-direction: column;
        gap: 3px;
    }

    .table .btn-sm {
        width: 100%;
    }
}

/* Ajuste de altura para filtros e botão de adicionar usuário */
.filter-group .form-control,
.filter-group .form-select,
.filter-group .btn {
    height: 38px; /* Padroniza a altura */
    font-size: 14px; /* Mantém um tamanho legível */
    padding: 6px 12px; /* Ajusta o espaçamento interno */
}

/* Melhoria na responsividade */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        gap: 8px;
    }
}

.feature-box-larger {
    max-width: 450px; /* Ajuste o tamanho conforme necessário */
}

.how-it-works-card-larger {
    max-width: 550px; /* Aumenta a largura dos boxes */
}


/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .how-it-works-card-larger {
        max-width: 100%; /* Boxes ocupam toda a largura em dispositivos móveis */
    }
}

.step-by-step {
    padding: 80px 20px;
}

.step-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.step-item {
    width: 280px;
    margin: 20px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.step-content {
    text-align: center;
}

.step-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: #666;
}

.btn-group .btn {
    padding: 8px 16px; /* Aumenta o padding para tornar a área de clique maior */
    width: 100%; /* Garante que o botão ocupe toda a largura do elemento pai */
    box-sizing: border-box; /* Garante que o padding não aumente a largura total do botão */
    justify-content: center; /* Centraliza o ícone dentro do botão */
    display: inline-flex; /* Permite o uso de justify-content */
}

.btn-group {
    display: flex; /* Garante que os botões fiquem lado a lado */
}

/* Centraliza o modal verticalmente mesmo com menu fixo */
.modal.show .modal-dialog {
    margin-top: 10vh;
}

/* Garante que em telas pequenas o modal fique bonito */
@media (max-width: 576px) {
    .modal.show .modal-dialog {
        margin: 5vh auto;
    }
}

.etapas-indicador {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

.etapa-bolinha {
  width: 30px;
  height: 30px;
  background-color: #ddd;
  color: #666;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.etapa-bolinha.ativa {
  background-color: #9B111E;
  color: white;
}

.etapa-linha {
  flex-grow: 1;
  height: 2px;
  background-color: #ccc;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.etapa-linha.ativa {
  background-color: #9B111E;
}


