/* Projeto IPA - GIO */

/* Cabeçalho */
.custom-header {
    background-color: white;
    padding: 1rem 0;
    /* Espaçamento vertical */
}

/* Mobile: Ajuste do menu e logo */
@media (max-width: 768px) {
    .custom-header .custom-logo {
        margin-left: auto;
        margin-right: 1rem;
        /* Espaço para o menu */
    }
}

/* Ajuste para a altura do cabeçalho */
.custom-header {
    position: relative;
    z-index: 1040;
    /* Cabeçalho acima do menu */
}

/* Logo */
.custom-logo img {
    max-height: 60%;
    /* Ajuste proporcional */
}

/* Ajuste para desktop e centralização */
.custom-logo {
    margin-left: auto;
    margin-right: auto;
}


/* Rodapé */
.custom-footer {
    background-color: white;
    border-top: 1px solid black;
    padding: 1rem 0;
    /* Espaçamento vertical */
}


/* Pg Home */
.boardRestict {
    max-width: 360px;
}

.imgHomeCantainer {
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.imgHome {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.marker {
    width: 30px;
    height: 30px;
}




/* Botão de menu customizado */
.custom-toggler {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-left: 1rem;
    z-index: 1050;
    /* Garantir que o botão fique acima do menu */
}

.menu-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: black;
    /* Cor visível do botão */
    border-radius: 2px;
}

/* Menu móvel */
.custom-menu {
    background-color: #333;
    /* Cor do fundo do menu */
    position: absolute;
    top: 100%;
    /* Aparece logo abaixo do cabeçalho */
    right: 0;
    /* Alinhar à esquerda */
    width: 150px;
    /* Limitar a largura */
    z-index: 1030;
    /* Fica abaixo do botão */
    transition: all 0.3s ease-in-out;
    /* Animação suave ao abrir */
    overflow: hidden;
    /* Evitar conteúdo que ultrapasse */
}

/* Links do menu */
.nav-link {
    text-decoration: none;
    color: white;
    /* Ajuste de contraste */
    padding: 0.5rem 0.5rem;
    /* Espaçamento ajustado */
    display: block;
    /* Ocupa toda a largura */
    text-align: left;
    /* Alinhar o texto à esquerda */
    white-space: nowrap;
    /* Impedir que o texto quebre em várias linhas */
}

.nav-link.active {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    font-weight: bold;
}

.nav-link.active {
    background-color: #f0f0f0;
    color: #000 !important;
    /* Torna o texto visível sobre fundo claro */
    font-weight: bold;
}

/* Menu visível */
.collapse.show {
    display: block !important;
    opacity: 1;
    /* Garantir que o menu esteja visível */
}


/* Labels */
label.required::after {
    content: " *";
    color: red;
}

label.form-label {
    display: block;
    margin-bottom: 0.5rem;
}


/* select2 */
/* Altura do select2 single */
.select2-container--default .select2-selection--single {
    height: 2.375rem !important;
    /* altura igual ao .form-control */
    min-height: 2.375rem !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-sizing: border-box !important;
}

/* Alinhamento do texto dentro */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
}

/* Alinhamento do ícone da seta */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.75rem !important;
}

/*****************/

/* Menu Lateral */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #DCDCDC;
    transition: width 0.3s;
    overflow-x: hidden;
    z-index: 1030;
    padding-top: 90px;
    /* Altura estimada do cabeçalho */
}

.sidebar.expanded {
    width: 200px;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 15px;
    color: #000;
}

.sidebar .nav-link:hover {
    background-color: #c0c0c0;
    text-decoration: none;
}

.nav-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.collapsed .link-text {
    display: none;
}

.main-content {
    margin-left: 200px;
    transition: margin-left 0.3s;
}

.main-content.collapsed {
    margin-left: 60px;
}

/* Botão fixo de retração */
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1040;
    background-color: #DCDCDC;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px !important;
    }

    .main-content {
        margin-left: 60px !important;
    }

    .link-text {
        display: none;
    }
}

/********/


/* Ajuste rodapé */
html,
body {
    height: 90%;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

.wrapper {
    flex: 1;
}

/*******/

.text-uppercase {
    text-transform: uppercase;
}

/* Seção Branco */
.section-bg-white {
    background-color: #FFF;
}

/* Seção Cinza claro */
.section-bg-lightgray {
    background-color: #DCDCDC;
}


/* Indicador de sessão */
/* Indicador de sessão fixo na lateral */
.session-indicator {
    z-index: 10;
    /* Garante que o indicador fique acima do conteúdo */
    left: 30px;
    top: 50%;
}

.indicator-item {
    width: 1rem;
    height: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #000;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator-item.active {
    background-color: #000;
    transform: scale(1.2);
}

.indicator-item:hover {
    background-color: #555;
}

/* Texto principal */
.text-content h1 {
    font-size: 2rem;
    font-weight: bold;
}

.text-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.text-content button {
    padding: 0.5rem 1rem;
}

/* Card de cadastro */
.card-cadastro {
    max-width: 400px;
    background-color: #fff;
    border: none;
    border-radius: 8px;
}

/* Respondividade */
@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
        text-align: center;
    }

    .session-indicator {
        display: none;
    }

    .card-cadastro {
        margin-top: 2rem;
    }
}


.accordion-button:focus {
    box-shadow: none !important;
    /* Remove o efeito de foco azul */
    outline: none;
    /* Remove o contorno */
    background-color: inherit;
    /* Mantém a mesma cor de fundo */
    color: inherit;
    /* Mantém a mesma cor de texto */
}



/* Sessão 6, página início */
.contact-info .circle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}



/* Alerta estilizado */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: 400px;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease;
    display: none;
    border: 2px solid;
    /* Define a borda */
    font-size: 1.2rem;
    /* Aumenta o tamanho da fonte */
}

/* Alerta oculto */
.custom-alert.hidden {
    opacity: 0;
    pointer-events: none;
    /* Impede interações enquanto o alerta está oculto */
}

/* Estilos para cores específicas */
.custom-alert.primary {
    border-color: #007bff;
    color: #007bff;
    background-color: #cce5ff;
    /* Azul claro */
}

.custom-alert.success {
    border-color: #28a745;
    color: #28a745;
    background-color: #d4edda;
    /* Verde claro */
}

.custom-alert.danger {
    border-color: #dc3545;
    color: #dc3545;
    background-color: #f8d7da;
    /* Vermelho claro */
}

.custom-alert.warning {
    border-color: #ffc107;
    color: #856404;
    /* Texto mais escuro */
    background-color: #fff3cd;
    /* Amarelo claro */
}

.custom-alert.info {
    border-color: #800080;
    color: #800080;
    background-color: #f3e6f8;
    /* Roxo claro */
}

/* Botão de fechar */
.custom-alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    /* Botão maior */
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    /* Usa a mesma cor da fonte do alerta */
}

/* Fundo da sobreposição */
.custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Escurece o fundo */
    z-index: 1040;
    opacity: 1;
    transition: opacity 0.5s ease;
    display: none;
}

.custom-alert-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}



/* Abertura Questionário */
.custom-section-spacing {
    height: auto !important;
    min-height: calc(100vh - 80px);
    /* Mantém a responsividade */
    padding-top: 40px;
    /* Espaçamento superior ajustável */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinha os elementos para o topo */
}