@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    font-family: "Ubuntu", serif;
    padding: 0px;
    margin: 0px;
}

:root {
    --cor-primaria: #09bf4e;
    --cor-secundaria: #0825de;
    --cor-ligth: #dcf7e6;
}

body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #F7FAFB;
}

.login{
    display: flex;
    align-items: center;
    justify-content: center;
}

.container{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 40px 25px;
    border-radius: 6px;
    padding-bottom: 110px;
}

.logo{
    max-width: 150px;
}

.title-page{
    color: rgb(94, 94, 94);
}

.form-login {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-login img {
    margin-bottom: 20px;
}

.form-login input {
    outline: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-login button {
    width: 100%;
    padding: 10px;
    background: var(--cor-primaria);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-login button:hover {
    background: #04b146;
}

/*CSS NAVBAR*/

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(100% - 20px);
    background-color: #fff;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    z-index: 1001;
    margin: 10px;
    border-radius: 10px;
}

.nav-item{
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cor-primaria);
    font-size: 32px;
    text-decoration: none;
    padding: 15px;
    border-radius: 4px;
    transition: color 0.3s;
}

.nav-item.active {
    background-color: var(--cor-ligth);
    border-bottom: 3px solid var(--cor-primaria); /* Linha inferior para destacar */
}


/*CSS NAVBAR*/


/*----------*/


/*CSS MODAL*/

.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Permite rolagem quando necessário */
}

.modal-conteudo {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    width: 90%;
    max-width: 280px;
    max-height: calc(100vh - 120px); /* Evita que o modal ultrapasse a tela */
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: auto 0; /* Garante espaçamento superior e inferior */
}


.fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/*CSS MODAL*/


/*----------*/


/*CSS FORMS MODAL*/

.form-modal{
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: left;
    flex-direction: column;
}

.form-modal label {
    margin: 6px 0px;
}

.form-modal input {
    outline: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

/*CSS FORMS MODAL*/


/*----------*/


/*CSS FORMS MODAL*/


select {
    outline: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
    margin-bottom: 10px;
    appearance: none; /* Remove a seta padrão em alguns navegadores */
}

/* Adicionando um ícone de seta personalizado */
select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888888"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px; /* Espaço para a seta */
    cursor: pointer;
}

/* Para melhorar a acessibilidade ao focar */
select:focus {
    border-color: var(--cor-primaria);
}

button{
    width: 100%;
    padding: 10px;
    margin: 10px 0px;
    background: var(--cor-primaria);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button-cnpj{
    width: 100%;
    padding: 10px;
    margin: 10px 0px;
    background: linear-gradient(45deg, #09bf4e, #06df59); /* Vermelho intenso para laranja vibrante */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn-view-ped{
    max-width: 120px;
    margin: 0px;
    padding: 10px;
    font-size: 14px;
    background-color: var(--cor-ligth);
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
    font-weight: 600;
}

.edit-btn{
    font-size: 14px;
    color: var(--cor-primaria);
    padding: 0px;
    background-color: transparent;
}

.save-btn{
    font-size: 14px;
    color: var(--cor-primaria);
    padding: 0px;
    background-color: transparent;
}

.mensagem{
    position: fixed; 
    top: 20px; 
    right: 20px; 
    color: var(--black);
    background-color: rgb(255, 255, 255); 
    border-bottom: 3px solid var(--cor-primaria);
    padding: 15px; 
    border-radius: 2px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.293);
    animation: fadeOut 4s ease-in-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; } /* Mantém visível por um tempo */
    100% { opacity: 0; visibility: hidden; }
}

.load-more{
    padding: 15px 10px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    color: rgb(131, 131, 131);
    font-weight: 800;
    margin-top: 10px;
    background-color: transparent;
}

#postsContainer{
    width: 100%;
}

.box-item{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0px;
    gap: 14px;
}

.box-item-sub{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 5px;
    padding: 8px 15px;
    gap: 14px;
}

.prod-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-head div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.prod-nome{
    font-size: 14px;
    font-weight: 400;
}

.prod-preco{
    font-size: 14px;
    font-weight: 500;
}

.prod-uni{
    font-size: 12px;
    font-weight: 300;
    color: rgb(78, 78, 78);
}

.lixo a{
    font-size: 14px;
    color: rgb(209, 209, 209);
}

.cnpj-info{
    font-size: 13px;
    margin-bottom: 8px;
    color: rgb(78, 78, 78);
}

.edit-input{
    outline: none;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.item-busca{
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #535353;
    border: 1px solid #ccc;
    background-color: rgb(245, 245, 245);
    border-radius: 5px;
}

#lista-produtos{
    margin: 10px 0px 15px 0px;
}

#tabela-produtos th{
    font-size: 12px;
}

#tabela-produtos td{
    font-size: 12px;
}

#tabela-produtos button{
    font-size: 20px;
    padding: 8px;
    background-color: red;
    margin-top: -2px;
    margin-bottom: 2px;
    color: white;
}

.inf-ret{
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #b9b9b9;
}

.form-trash{
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.form-trash h2{
    font-size: 19px;
    color: #535353;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 20px 0;
    width: 100%;
    color: var(--cor-primaria);
    font-weight: 600;
    text-align: center;
}

.pagination p{
   font-size: 20px;
   margin: 0px 10px;
}

.pagination a {
    text-decoration: none;
    font-size: 20px;
    color: var(--cor-primaria);
    background-color:var(--cor-ligth);
    border-radius: 4px;
    padding: 5px 10px;
}
.pagination a:hover {
    color: var(--cor-ligth);
    background-color:var(--cor-primaria);
}

.confirm-trash{
    background-color: var(--cor-ligth);
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
}

.total-dash {
    text-align: center;
}

.total-dash p{
    font-size: 14px;
    font-weight: 500;
    color: #535353;
}

.total-dash h2{
    font-size: 30px;
    font-weight: 700;
    color: var(--cor-primaria);
}

.grafico-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-left: 2px solid #444;
    border-bottom: 2px solid #444;
    padding: 10px;
    position: relative;
}

.barra {
    width: 20px;
    background-color: #4CAF50;
    text-align: center;
    color: white;
    font-size: 12px;
    border-radius: 3px 3px 0 0;
    transition: 0.3s;
}

.barra:hover {
    background-color: #388E3C;
}

.label {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
}

.btn-sair{
    background-color: rgb(255, 0, 68);
    width: 200px;
}