/* Página Completa */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, Arial, sans-serif;
}

body {
    background-color: white;
    position: fixed;
    width: 100%;
    height: 100%;
}

a.nav-item.hiden {
    display: none;
    visibility: hidden;
    transition: 1s;
}

/* Cabeçalho */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 15vh;
    width: 100%;
    background-color: #002988;
    box-shadow: rgba(0, 0, 0, 0.097) 0px 5px 15px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    gap: 20px;
}

.header {
    transform: translateY(30px);
}

header h1 {
    color: white;
    font-size: 36px;
}

/* Botões superiores */
.btnTop {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 3%;
    padding-top: 10px;
    transform: translateY(10px);
}

.btnTop button {
    display: flex;
    justify-content: space-between;
    color: white;
    background-color: transparent;
    align-items: center;
    /* width: 150px; */
    font-size: 1rem;
    border: none;
    padding: 12px 24px;
    gap: 10px;
}

/* Conteúdo principal */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 80vh; */
    min-height: calc(80vh - 60px);
    /* max-height: 80vh; */
    width: 100%;
}

.container img {
    width: 100%;
    max-width: 450px;
    max-height: 450px;
}

.box {
    width: 300px;
    box-shadow: rgba(0, 0, 0, 0.097) 0px 5px 15px;
    border-radius: 30px;
    padding: 30px 30px;
}

.box h2 {
    font-size: 25px;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 15px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 16px;
    padding: 20px 45px 20px 20px;
    border-radius: 40px;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.loginInput {
    border: 1px solid #d4d4d4;
}

.show-password {
    accent-color: blue;
    margin-right: 5px;
    margin-bottom: 10px;
}

.login-btn {
    width: 100%;
    height: 50px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Painel Produtos */
.mainProdutos {
    padding: 24px;
    min-height: calc(80vh - 60px);
    display: flex;
    flex-direction: column;
}

.mainProdutos label {
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.input-group input,
select {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.input-group button {
    margin-left: 8px;
    padding: 10px;
    border: none;
    background-color: #002988;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.btnBottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex: 1;
}

.btnBottom .message p {
    text-align: justify;
}

.btn-limpar {
    padding: 12px 24px;
    border-radius: 4px;
    /* float: right; */
    cursor: pointer;
    color: white;
    background-color: #002988;
    border-color: transparent;
    font-size: 1rem;
    align-self: baseline;
    /* flex: 1; */
}

/* Painel Categorias */

.mainCategorias {
    padding: 24px;
    min-height: calc(80vh - 60px);
    display: flex;
    flex-direction: column;
}

.mainCategorias label {
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

/* Painel Compras */

.mainCompras {
    padding: 24px;
    min-height: calc(80vh - 275px);
    display: flex;
    flex-direction: column;
}

.preco-input-area {
    position: fixed;
    width: 100%;
    bottom: 70px;
    z-index: 9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.preco-input-area label {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Painel Montar Produtos */

#mainList {
    width: 100%;
    height: calc(80vh - 100px);
    margin: 15px;
}

#mainList h2 {
    padding-bottom: 10px;
}

#produtosContainer {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    height: calc(70vh - 100px);
}

#produtosContainer input{
    width: 20px;
    height: 20px;
    cursor: pointer;
    /* Alinha verticalmente com o texto da label */
    vertical-align: middle;
}

#produtosContainer label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding-left: 6px;
    font-size: 15px;
}

/* Modal */

.modal {
    /* display: none; Inicialmente escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Aparece acima de outros elementos */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal input {
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    width: 90%;
}

.modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #002988;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #0030a1;
}

/* SideBar */
.sideBar {
    height: 100%;
    width: 330px;
    position: fixed;
    top: 0;
    left: -390px;
    background-color: white;
    color: black;
    transition: left 0.3s ease;
    padding-top: 20px;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 20;
}

.sideBar a {
    display: flex;
    color: rgb(27, 27, 27);
    padding: 15px 20px;
    margin: 8px 20px;
    text-decoration: none;
    transition: background 0.2s;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    border-radius: 13px;
}

.sideBar.active {
    left: 0;
    z-index: 20;
}

.sideBar a:hover {
    color: white;
    border-radius: 13px;
    background-color: blue;
}

.open-btn {
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    border: none;
    position: fixed;
    top: 15px;
    left: 15px;
    transition: background 0.2s;
    z-index: 15;
}

.open-btn:hover {
    background-color: transparent;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 18;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BottomNav */

.bottom-nav {
    position: fixed;
    /* Fixa a barra na tela */
    bottom: 30px;
    /* Alinha na parte inferior */
    left: 50%;
    width: 88%;
    /* Ocupa toda a largura */
    height: 60px;
    /* Altura da barra */
    display: flex;
    /* Permite o alinhamento dos itens */
    justify-content: space-around;
    /* Distribui o espaço entre os itens */
    align-items: center;
    background-color: #ffffff;
    /* Cor de fundo (branca) */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    /* Sombra suave para destacar */
    z-index: 10;
    /* Garante que fique acima de outros elementos */
    padding: 0 10px;
    margin: 0;
    border-radius: 30px;
    transform: translateX(-50%);
}

/* Estilo de cada item de navegação */
.nav-item {
    display: flex;
    flex-direction: column;
    /* Ícone acima do texto */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Remove sublinhado do link */
    color: #6c757d;
    /* Cor padrão dos ícones e texto (cinza) */
    flex-grow: 1;
    /* Permite que cada item ocupe a mesma largura */
    transition: color 0.3s ease;
    /* Transição suave para o efeito hover/ativo */
    padding: 5px 0;
    cursor: pointer;
}

/* Estilo do ícone */
.nav-item .material-icons {
    font-size: 24px;
}

/* Estilo do texto */
.nav-item .nav-text {
    font-size: 10px;
    margin-top: 2px;
}

/* Estilo quando o item está ATIVO ou com HOVER (passar o mouse) */
.nav-item.active,
.nav-item:hover {
    color: #007bff;
    /* Cor de destaque (azul) */
}

/* TabLayout */

.tab-layout {
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 40px;
    background-color: #002988;
    margin-top: 3px;
}

.tab-item {
    color: white;
    font-weight: 600;
}