/* Reset básico para remover margens e padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
}

/* Configurações de corpo */
body {
    background: linear-gradient(135deg, #6ca3d9, #c57a09);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container principal */
#app-screen {
    margin: 0;
    width: 100%;
    background: linear-gradient(135deg, #c184db00, #d5cf9000);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}


/* Tela de Login */
#login-screen {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #c184db, #d5cf90);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #fff;
}
h1 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 26px;
    color: #ffffff;
    text-align: center;  
}
#num-posts{
    margin-top: 20px;
    font-size: 25px;
    color: #ffffff;
    text-align: center;  
}

#login-button {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#login-button:hover {
    background-color: #3367d6;
}

/* Cabeçalho */
#app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 60px;
    
}
/* Barra de pesquisa */
#search-bar {
    padding: 10px;
    font-size: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    width: 70%;
    transition: background-color 0.3s ease;
    height: 80%;
    margin-top: 5px;
}

#search-bar:focus {
    background-color: #555;
    outline: none;
}

#search-button {
    background-color: #4e9af1;
    color: #fff;
    padding: 10px 20px;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    height: 80%;
    width: 25%;
    margin-left: 10px;
    margin-top: 10px;
    text-align: center;
}

#search-button:hover {
    background-color: #3b80d0;
}

/* Botão de sair */
#logout-button {
    background-color: #d36962;
    color: white;
    padding: 7px 14px;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    height: 80%;
}

#logout-button:hover {
    background-color: #d32f2f;
}

/* Container das notas */
#posts-container {
    margin-bottom: 20px;
}

.post {
    background-color: #444;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.post p {
    margin: 5px 0;
    font-size: 15px;
}

button {
    background-color: #f1c40f;
    color: white;
    padding: 8px 16px;

    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #f39c12;
}

button:active {
    background-color: #e67e22;
}

/* Destacar notas perto do vencimento */
.highlighted {
    border: 2px solid #f39c12;
    background-color: #e67e22;
    color: #fff;
}

/* Formulário de adicionar nota */
#add-post-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}
#password-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#delet-password-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

form label {
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

form textarea{
    font-size: 10px;
}

form input, form select {
    width: 100%;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 10px;
}
#obs{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 10px;
    height: 200px;
}
form input:focus, form select:focus {
    outline: none;
    background-color: #444;
}

/* Botões de salvar e cancelar */
form button {
    width: 49%;
    margin: auto;
    background-color: #4e9af1;
    border-radius: 5px;
    height: 50px;
}

#cancel-button {
    background-color: #e74c3c;
}

#cancel-button:hover {
    background-color: #c0392b;
}

form button:hover {
    background-color: #3b80d0;
}

/* Button para adicionar nota */
#add-post-button {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-post-button:hover {
    background-color: #27ae60;
}

/* Animações de transição */
#add-post-form, #app-screen {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Restante do CSS */

/* Botão para adicionar nota */
#add-post-button {
    background-color: #2e774d;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 20px; /* Espaçamento abaixo do botão */
    width: 100%;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

#add-post-button:hover {
    background-color: #22643d;
}

/* Container das notas */
#posts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post {
    background-color: #444;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Destacar notas perto do vencimento */
.highlighted {
    border: 2px solid #f39c12;
    background-color: #e67e22;
    color: #fff;
}
.realHighlighted{
    border: 4px solid #890c0c;
    background-color: #e62222;
    color: #fff;
}
/* Estilos para o modal */
#post-modal {
    display: none; /* Oculta o modal inicialmente */
    position: fixed; /* Fixa o modal na tela */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
    z-index: 1000; /* Garante que o modal fique sobre outros elementos */
    display: flex; /* Define como flex container */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    overflow: hidden; /* Garante que não vaze da tela */
}

/* Conteúdo do modal */
#modal-content {
    background-color: #444; /* Fundo branco */
    border-radius: 8px; /* Borda arredondada */
    padding: 20px; /* Espaçamento interno */
    max-width: 800px; /* Largura máxima */
    width: 90%; /* Largura adaptativa */
    max-height: 80%; /* Altura máxima relativa à tela */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    overflow-y: auto; /* Adiciona rolagem vertical se o conteúdo ultrapassar */
    animation: fadeIn 0.3s ease; /* Animação ao aparecer */
    margin: auto;
    text-align: center;
}

/* Animação para o modal */
@keyframes fadeIn {
    from {
        opacity: 0; /* Transparente no início */
        transform: scale(0.9); /* Levemente menor */
    }
    to {
        opacity: 1; /* Totalmente visível */
        transform: scale(1); /* Tamanho original */
    }
}

/* Título do modal */
#modal-content h3 {
    margin-top: 10px; /* Remove margem superior */
    font-size: 1em; /* Tamanho do título */
    color: #ffffff; /* Cor do título */
    word-wrap: break-word; /* Permite quebrar palavras muito longas */
}

/* Texto do modal */
#modal-content p {
    font-size: 1em; /* Tamanho do texto */
    color: #ffffff; /* Cor do texto */
    margin: 15px 0; /* Espaçamento vertical */
    word-wrap: break-word; /* Permite quebrar palavras muito longas */
    text-align: left;
}
#modal-content legend{
    color: rgb(255, 255, 255);
    font-size: 25px;
}
/* Botão de fechar o modal */
#close-modal-button {
    background-color: #007bff; /* Cor azul */
    color: white; /* Cor do texto */
    border: none; /* Sem borda */
    border-radius: 4px; /* Borda arredondada */
    padding: 10px 20px; /* Espaçamento interno */
    font-size: 1em; /* Tamanho do texto */
    cursor: pointer; /* Cursor de clique */
    transition: background-color 0.3s; /* Animação de hover */
    margin: 20px;

}

#close-modal-button:hover {
    background-color: #0056b3; /* Cor azul mais escura no hover */
}
#showbtn{
    background-color: #007bff; /* Cor azul */
    color: white; /* Cor do texto */
    border: none; /* Sem borda */
    border-radius: 4px; /* Borda arredondada */
    padding: 10px ; /* Espaçamento interno */
    font-size: 1em; /* Tamanho do texto */
    cursor: pointer; /* Cursor de clique */
    transition: background-color 0.3s; /* Animação de hover */
    width: 80%;
    height: 50px;
    margin-bottom: 20px;
    margin-top: 30px;
}
#show-container{
    text-align: center;
}
a{
    margin-bottom: 25px;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
}
#num-posts{
    font-size: 1.2em;
    color: #fff;
}

.rec{
    font-size: 25px;
    color: white;
    background-color: #0056b3;
    margin: auto;
    width: 200px;
    height: 4em;
    font-size: 12px;
}
.rec:hover{
    background-color: #0e3e72;
}
.rec:active{
    background-color: #112b47;
}
.ini{
    justify-content: center;
    align-items: center;
    text-align: center;
}/* Botão de sair */
#sair-button {
    background-color: #f44336;
    color: white;
    padding: 7px 14px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    height: 80%;
}

#sair-button:hover {
    background-color: #d32f2f;
}
.spa{
    margin: 10px;
    border-radius: 15px;
    justify-content: flex-start;

}
/*BOTOES ANCORAS*/
.sis{
    font-size: 20px;
    color: white;
    background-color: #0056b3;
    margin: 5px;
    width: 127px;
    height: 3em;
    font-size: 12px;
    
}
.sis:hover{
    background-color: #0e3e72;
}
.sis:active{
    background-color: #112b47;
}
.info{
    font-size: 20px;
    color: white;
    background-color: #ff7b00;
    margin: 5px;
    width: 127px;
    height: 3em;
    font-size: 12px;
}
.info:hover{
    background-color: #b55f10;
}
.info:active{
    background-color: #885220;
}
.con{
    font-size: 18px;
    color: rgb(206, 119, 119);
    margin: 5px;
    width: 125px;
    height: 3em;
}
legend{
    text-align: center;
    font-size: 22px;
    font-style: italic;
}
.ser{
    text-align: justify;
    justify-content: space-between;
    align-items: flex-end   ;
    display: flex;
}
ol{
    margin: auto;
    margin-left: 20px;
    margin-top: 20px;
}
.sit{
    font-size: 18px;
    color: rgb(103, 112, 240);
    margin: 5px;
    width: 125px;
    height: 3em;

}
pri{
    margin-top: 20px;
}


.ai{
    font-size: 18px;
    color: rgb(224, 125, 235);
    margin: 5px;
    width: 125px;
    height: 3em;
}
.comp{
    font-size: 18px;
    color: rgb(134, 125, 235);
    margin: 5px;
    width: 125px;
    height: 3em;
}
#rev{
    text-align: center;
}
details{
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 25px;
}
.tit{
    font-size: 20px;
    color: rgb(168, 168, 168)

    
}

#sync{
    font-size: 25px;
    color: #d1f4f9;
    margin: 10px;
    margin-bottom: 40px;
}
.subtit{
    font-size: 18px;
    color: #f08809;
    text-align: center;
    
}
.det{
    background-color: #091599;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
}
.cha{
    font-size: 18px;
    color: rgb(218, 140, 52);
    margin: 5px;
    width: 125px;
    height: 3em;
}
.but{
    font-size: 23px;
    min-width: 60px;
    max-width: 60px;
    height: 3.8rem;
    background: linear-gradient(135deg, #8d62b2, #920986);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}
#user-container{
    padding: 10px;
    font-size: 20px;
    text-align: left
}

#rapido{
    font-size: 22px;
    color: #ff0000;
    text-align: center; 
}
#logo{
    margin: 10px;
    border-radius: 200px;
    justify-content: flex-start;
    border-color: #d57419;
    border-style: solid;
    border-width: 5px;
}

.conjunto{
    margin: 10px;
    border-radius: 10px;
    border-width: 3.5px;
    display: flex; /* Espaçamento entre os botões */
    justify-content: space-between; /* Centraliza os botões */
    flex-wrap: wrap;
    text-align: center
}
#icone{
    width: 50px;
    border-radius: 2000px;
} 
.sepa{
    margin: 10px;
    border-radius: 15px;
    justify-content: space-around;
    text-align: left;
}
.but2{
    font-size: 14px;
    width: 45%;
    height: 5rem;
    background: linear-gradient(135deg, #c855dc, #78217a);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}
.tit2{
    font-size: 25px;
    color: rgb(255, 255, 255);
    text-align: center;
    
}
.subtit2{
    font-size: 20px;
    color: #c5c5c5;
    text-align: center;
    
}
.area{
    background-color: #0a179db8;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);/* Espaçamento entre os botões */
    justify-content: space-between; /* Centraliza os botões */
}
.leg{
    font-size: 15px;
}
.spaa{
    margin: 5px;
    border-radius: 15px;
    justify-content: space-between;
    text-align: center;
    width: 45%;
}
.butt{
    font-size: 45px;
    min-width: 75px;
    max-width: 100px;
    height: 6rem;
    background: linear-gradient(135deg, #bedd9d, #06461a);
    cursor: pointer;
    margin: 5px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
    border-radius: 20px;

}
#geral{

    border-radius: 15px;
    padding: 10px;
    display: flex; /* Espaçamento entre os botões */
    justify-content: space-between; /* Centraliza os botões */
    flex-wrap: wrap;
}
.group{
    text-align: center;
}
.nam{
    font-size: 15px;
    max-width: 100px;
    word-wrap: break-word;
    white-space: normal;
}
.nam1{
    font-size: 15px;
    max-width: 80px;
    word-wrap: break-word;
    white-space: normal;
}
#sisi{
    font-size: 40px;
    color: #25338d;
}
#geral2{
    background-color: #0a179db8;
    border-radius: 15px;
    padding: 10px;
    display: flex; /* Espaçamento entre os botões */
    justify-content: space-between; /* Centraliza os botões */
    flex-wrap: wrap;
}
#notas{
    background-color: #6a3da9;
    border-radius: 15px;
    padding: 10px;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

#atua{
    margin: 10px;
    font-size: 12px;

}
.tuatua{
    margin-top: 10px;
    border-radius: 10px;
    

}
#atualiza{
    padding: 0;
    margin: 0;
    max-width: 95%;
    
}
#susu{
    font-size: 20px;
}