/* ---------------------- */
/* Estilos Gerais */
/* ---------------------- */

body {
    font-family: 'Poppins', Sans-serif;
    background-color: #111115;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    justify-content: space-between;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', Sans-serif;
    font-weight: 600;
    color: #fff;
}

h1 {
    font-size: 24px;
    margin: 0 0 20px 0;
    padding: 10px;
    font-weight: 600;
    color: #fff;
}

p {
    color: #fff;
}

a {
    text-decoration: none;
}

header {
    color: #fff;
    padding: 30px 10px 0 10px;
    display: flex; /* Alinha itens em linha */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    background-color: #111115; /* Fundo do header */
    padding: 10px 0; /* Espaçamento interno no topo e embaixo */
    width: 100%; /* Ocupa toda a largura do conteúdo */
    box-sizing: border-box;
}

footer {
    width: 100%;
    position: relative;
    bottom: 0;
    background-color: #1c1b22;
    text-align: center;
    padding: 10px;
    color: #fff;
    border-radius: 15px;
    margin: 20px 0 0 0;
    box-sizing: border-box;
}
.logo {
    max-width: 200px; /* Ajusta o tamanho da logo */
    margin: 20px 0 0 0;
}

.ti {
    font-size: 1.5em;
    margin-right: 5px;
    vertical-align: middle;
}

.icon-big {
    font-size: 36px;
    color: #fff;
}

.number-big {
    font-size: 48px !important;
}

.link-laranja {
    color: #FF8B00;
    font-weight: 500;
    text-decoration: none;
}

.link-laranja:hover {
    color: #0199EF;
}

.link-azul {
    color: #0199EF;
    font-weight: 500;
    text-decoration: none;
}

.link-azul:hover {
    color: #FF8B00;
}

.button-azul {
    background-color: #0199EF;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 5px 15px;
    font-weight: 500;
    text-decoration: none;
    margin: 30px 0 0 0;
}

.button-azul:hover {
    background-color: #FFFFFF;
    color: #0199EF;
}

.img_detalhes {
    max-width: 100%;
    max-height: 400px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
}

.atencao {
    color: #FF0000;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------------------- */
/* Layout */
/* ---------------------- */

.layout-container {
    display: flex; /* Menu e conteúdo lado a lado */
    margin-left: 250px; /* Compensa a largura do menu lateral */
    flex-direction: column; /* O header e o conteúdo principal ficam empilhados */
    justify-content: space-around;
}

.layout-container.no-sidebar {
    margin-left: 0; /* Remove a margem se não houver menu lateral */
}

.conteudo-principal {
    margin-top: 10px; /* Espaçamento do conteúdo abaixo da logo */
    padding: 20px 20px 0 20px ;
    flex: 1;
    box-sizing: border-box;
}

.menu-lateral {
    position: fixed; /* Mantém o menu fixo na lateral */
    top: 0; /* Alinha ao topo da página */
    left: 0;
    width: 250px; /* Largura fixa */
    height: 100%; /* Altura total da tela */
    background-color: #1c1b22; /* Cor de fundo */
    padding: 10px;
    box-sizing: border-box;
}

.menu-lateral h2 {
    margin-bottom: 10px;
}

.menu-lateral button {
    display: block;
    width: 100%;
    background-color: #1c1b22;
    margin-bottom: 10px;
    padding: 10px;
    border: solid 0px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.menu-lateral button:hover {
    background-color: #312f3b;
}

.menu-mobile {
    display: none; /* Esconde o menu no desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1c1b22;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 10px 0;
    justify-content: space-around; /* Espaça igualmente os ícones */
    align-items: center;
}

.menu-mobile button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.menu-mobile button:hover {
    color: #0199EF;
}

.menu-mobile button i {
    font-size: 1.2em;
}

/* Botão flutuante no mobile */
.botao-flutuante {
    display: none; /* Esconde no desktop */
    position: fixed;
    bottom: 70px; /* Altura acima da barra de menu mobile */
    right: 20px; /* Distância da lateral direita */
    z-index: 1100; /* Sobrepõe outros elementos */
}

.btn-azul-flutuante {
    font-family: 'Poppins', Sans-serif;
    background-color: #0199EF;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px; /* Forma arredondada */
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Efeito de sombra */
    cursor: pointer;
}

.btn-azul-flutuante:hover {
    background-color: #0056b3; /* Cor mais escura ao passar o mouse */
}

/* ---------------------- */
/* Botões */
/* ---------------------- */

.btn-azul {
    font-family: 'Poppins', Sans-serif;
    background-color: #0199EF !important;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    max-width: 250px;
    text-align: center;
}

.btn-azul:hover {
    background-color: #312f3b !important;
}

.btn-laranja {
    font-family: 'Poppins', Sans-serif;
    background-color: #FF8B00 !important;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    max-width: 250px;
    text-align: center;
}

.btn-laranja:hover {
    background-color: #312f3b !important;
}

.button {
    margin-top: 20px;
    background-color: #FF8B00;
    color: #FFF;
    font-family: 'Montserrat', Sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 8px;
    border: 0 solid;
    border-radius: 10px;
}

.button:hover {
    background-color: #0199EF;
}

.submit {
    margin-top: 20px;
    background-color: #FF8B00;
    color: #FFF;
    font-family: 'Montserrat', Sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 30px;
    border: 0 solid;
    border-radius: 10px;
}

.submit:hover {
    background-color: #0199EF;
}

.btn-vermelho {
    background-color: #1c1b22;
    color: #FF0000;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.btn-vermelho:hover {
    background-color: #1c1b22;
    color: #FFFFFF;
}


/* ---------------------- */
/* Header */
/* ---------------------- */

.header-container {
    background-color: #312f3b;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.header-item {
    color: #fff;
    font-size: 12px;
    margin: 0;
}

.header-form select {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #474553;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.header-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.header-form button:hover {
    background-color: #0056b3;
}

/* ---------------------- */
/* Menu */
/* ---------------------- */

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    color: #31A6DF;
}

/* ---------------------- */
/* Dashboard */
/* ---------------------- */

.dashboard-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.linha {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.box-content {
    margin: 20px auto;
    padding: 40px;
    background-color: #1c1b22;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Ativa flexbox para centralizar o conteúdo */
    flex-direction: column; /* Coloca os itens em coluna */
    justify-content: center; /* Centraliza o conteúdo verticalmente */

}

.box-600 {
    max-width: 600px;
}

.box {
    flex: 1;
    min-width: 250px;
    margin-bottom: 10px;
    text-align: center;
    background-color: #1c1b22;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.box-30 {
    width: 30%;
}

.tag {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    background-color: #343a40;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background-color: #495057;
}

.tag.active {
    background-color: #007bff;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 15px;
}

.img_detalhes {
    max-width: 300px;
    height: auto;
}

/* ---------------------- */
/* Busca, Filtros e Exportação */
/* ---------------------- */

.filter-container {
    background-color: #312f3b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.header-item {
    color: white;
    font-weight: bold;
}

.button-filter {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.button-filter:hover {
    background-color: #0056b3;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Garante que os elementos fiquem na mesma linha */
}

.input-filter {
    flex: 1; /* Faz com que o campo de busca ocupe o espaço restante */
    min-width: 250px; /* Define um mínimo para evitar que o campo fique muito pequeno */
}

.select2-container {
    width: 200px !important; /* Define um tamanho fixo para o campo de status */
}

.input-filter, .select2-container--default .select2-selection--multiple {
    background-color: #444053 !important;
    color: #111115;
    padding: 5px;
    border: none;
    border-radius: 8px;
    margin-top: 5px;
    width: auto;
    max-height: 25px !important;
    overflow: hidden;
}

.export-container {
    background-color: #312f3b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
    width: 97%;
}

.field-group {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha se necessário */
    gap: 8px; /* Espaçamento entre os campos */
}

.field-group label {
    display: flex;
    align-items: center;
    gap: 2px; /* Espaçamento entre o checkbox e o texto */
    font-size: 14px;
    color: #fff;
}

.field-group label text {
    margin-top: -10px;
}

.button-filter {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.button-filter:hover {
    background-color: #0056b3;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #555;
    border: none;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}


/* ---------------------- */
/* Formulários */
/* ---------------------- */

label {
  margin-bottom: 5px;
}

.form-label {
    display: block;
    color: #FFFFFF;
}

.form-input {
    width: 100%;
    max-width: 300px;
}

input {
    font-family: 'Montserrat', Sans-serif;
    padding: 5px;
    color: #333333;
    margin-bottom: 15px;
}

.modeloForm select {
    font-family: 'Montserrat', Sans-serif;
    padding: 5px 10px;
    color: #333333;
    background-color: #f2f2f2;
    border: #b8b8b8 solid 1px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cadastroForm select {
    font-family: 'Montserrat', Sans-serif;
    padding: 5px;
    color: #333333;
    background-color: #f2f2f2;
    border: #b8b8b8 solid 1px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cadastroForm {
    display: grid;
    width: 100%;
    max-width: 400px;
}

.cadastroForm label {
  display: block;
  color: #fff;
}

.cadastroForm input {
  display: inline;
}

.image-upload {
    display: flex;
    align-items: flex-start;
}

.image-container {
    width: 20%;
    float: left;
}

.upload-container {
    width: 80%;
    float: left;
}

.image-link {
    font-weight: 500 !important;
}

.upload {
    margin-top: 10px;
}


.previous {
    margin-top: 20px;
    background-color: #b8b8b8;
    color: #FFF;
    font-family: 'Montserrat',Sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 8px;
    border: 0 solid;
    border-radius: 10px;
}

.next {
    margin-top: 20px;
    background-color: #0199EF;
    color: #FFF;
    font-family: 'Montserrat',Sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 8px;
    border: 0 solid;
    border-radius: 10px;
}

.next:hover {
    background-color: #b8b8b8;
}

.previous:hover {
    background-color: #0199EF;
}

.error {
    color: #CE0001;
    margin-bottom: 10px;
}

.invalid {
    border: 1px solid #FF8B00;
}

.form {
    width: 100%;
    text-align: left;
}

.form-step {
    width: 100%;
    text-align: left;
}

.readonly-field {
    background-color: #f5f5f5; /* Fundo cinza claro */
    color: #6c757d; /* Texto cinza escuro */
    border: 1px solid #ced4da; /* Borda semelhante aos campos normais */
    cursor: not-allowed; /* Indica que o campo não pode ser editado */
    font-style: italic; /* Texto em itálico para destaque (opcional) */
    pointer-events: none; /* Garante que nenhuma interação seja possível */
}

/* ---------------------- */
/* Popup */
/* ---------------------- */

.popup-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Inicialmente oculto */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Garante que fique acima de outros elementos */
}

.popup-overlay-custom.active {
    display: flex; /* Exibe o popup quando ativo */
}

.popup-content-custom {
    background-color: #312f3b;
    color: white;
    padding: 20px;
    text-align: center;
    width: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaçamento entre os elementos */
}

.popup-content-custom textarea {
    width: 100%;
    height: 80px;
    resize: none;
}

.popup-content-custom button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.popup-content-custom button:hover {
    background-color: #0056b3;
}


/* ---------------------- */
/* Tabelas */
/* ---------------------- */

table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    overflow-x: auto;
    color: #fff;
}

table th, table td {
    border: 1px solid #312f3b;
    padding: 10px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    font-size: 12px;
}

th{
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #23222b;
}

.pagination {
    margin: 20px 0;
}

.number {
    margin: 0 5px 0 0 ;
    padding: 5px 12px;
    border-radius: 100%;
    background-color: #0199EF;
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
}

.active {
    margin: 0 5px 0 0 ;
    padding: 5px 12px;
    border-radius: 100%;
    background-color: #FF8B00;
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
}

.number:hover {
    background-color: #FF8B00;
}

.ant-prox {
    color: #0199EF;
    font-weight: 600;
    text-decoration: none;
}

.logs-container {
    margin-top: 20px;
}
        
.logs-container table {
    width: 100%;
    border-collapse: collapse;
}
        
.logs-container th, .logs-container td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
        
.logs-container th {
    background-color: #f9f9f9;
}

/* ---------------------- */
/* Estilos Mobile */
/* ---------------------- */

@media only screen and (max-width: 600px) {
    
    .conteudo-principal {
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .layout-container {
        margin-left: 0;
    }
    
    .dashboard-container {
        padding: 0;
    }
    
    .menu-lateral {
        display: none;
    }

    .menu-mobile {
        display: flex;
    }
    
    .botao-flutuante {
        display: block; /* Mostra no mobile */
    }

    .menu-mobile button:first-child {
        display: none; /* Remove o botão de cadastro do menu mobile comum */
    }

    .linha {
        flex-direction: column;
        gap: 20px;
    }

    .box {
        width: 90%;
    }
    
    .box-30 {
        width: 90%;
        margin: 0 5%;
        box-sizing: border-box;
    }
    
    .box-content {
        width: 90%;
        margin: 20px 5% 0 5%;
        padding: 30px;
        box-sizing: border-box;
    }
    
    .box h2, .box h3 {
        font-size: 18px; /* Adapta o tamanho dos textos nos cards */
    }
    
    .width75 {
        width: 75%;
    }
    
    table {
        font-size: 12px; /* Reduz a fonte no mobile */
        display: block; /* Torna a tabela responsiva */
        overflow-x: auto; /* Habilita rolagem horizontal */
    }

    table th, table td {
        white-space: normal; /* Permite quebra de linha */
        padding: 8px; /* Ajusta o padding */
    }
    
    .input-filter {
        min-width: 200px;
    }
    
    .filter-row {
        flex-wrap: wrap; /* Permite quebra de linha */
        justify-content: space-between; /* Organiza os elementos no espaço disponível */
    }

    .filter-row .header-item,
    .filter-row .input-filter,
    .filter-row .button-filter {
        width: 100%; /* Faz os elementos ocuparem 100% da largura */
        margin-bottom: 10px; /* Adiciona espaçamento entre os elementos */
    }
    
    .cadastroForm input {
        display: block; /* Garante que o campo ocupa uma linha inteira */
        width: 100%;
        text-align: left;
        padding: 10px; /* Espaçamento interno do campo */
        margin-bottom: 15px; /* Espaçamento entre os campos */
        border: 1px solid #b8b8b8; /* Borda para os campos */
        border-radius: 5px; /* Arredondamento das bordas */
        box-sizing: border-box; /* Inclui padding e borda no cálculo da largura */
    }

    footer {
        position: static;
        width: 90%;
        padding: 10px;
        text-align: center;
        color: #fff;
        box-sizing: border-box;
        margin: 20px 5% 50px 5%;
        font-size: 0.8em;
    }
    
    .footer-dashboard {
        position: static;
        width: 90%;
        padding: 20px;
        text-align: center;
        color: #fff;
        box-sizing: border-box;
        margin: 0 0 50px 5%;
        font-size: 0.8em;
    }
}