@charset "UTF-8";

/*=========== Configurações Globais ===========*/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
/*=============================================*/

/*  Vamos utilizar variaveis de cores mais para frente
  Variáveis para cores:
  --fundo-header
  --texto
  --titulo
  --destaque
  --destaque-inverso
  --fundo-card
*/


body {
    overflow-x: hidden;
    height: 100vh;
    display: grid;
    font-family: Arial, Helvetica, sans-serif;
    grid-template-columns: 19% 81%;
}

/*=========== Configurações do header do site ===========*/
header {
    background-color: #15281F;
    display: flex;
    flex-flow: column wrap;
    grid-column: 1/2;
    height: 100vh;
    width: 19%;
    min-width: 55px;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 2px 0px 6px rgba(0, 0, 0, 0.288);
    transition: 0.2s;
}

header > #cabeçalho {
    display: flex;
    align-items: center;
    padding: 20px 0px;
    border-bottom: 1px solid #293D34;
}

header > #cabeçalho > img {
    width: 25%;
}

header > #cabeçalho > #titulo {
    width: 75%;
    transition: 0.3s;
}

header > #cabeçalho > #titulo >  h1 {
    font-size: 1.1em;
    color: #A0C856;
    text-align: left;
}

header > #cabeçalho > #titulo > h2 {
    font-size: 0.9em;
    font-weight: lighter;
    color: #8C968C;
    text-align: left;
}

/*=========== Configurações da navegação do site ===========*/
nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 10px 8px;
}

nav > button {
    text-align: left;
    background-color: #15281F;
    font-size: 0.95em;
    font-weight: 500;
    color: #859186;
    padding: 12px;grid-column: 1/3;
    outline: none;
    border: none;
    transition: 0.4s;
}

nav > button > i {
    font-size: 1.3em;
    margin-right: 5px;
}

nav > button:hover {
    cursor: pointer;
    color: white;
    background-color: #1B3127;
    border-radius: 12px;
}

nav > button:focus {
    color: #A0C856;
    background-color: #22392F;
    border-radius: 12px;   
}
/*=============================================*/

/*=========== Configurações do footer do header ===========*/
div#footerMenu {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    border-bottom: none;
    border-top: 1px solid #293D34;
    display: flex;
    flex-flow: column wrap;
    gap: 2px;
}

div#footerMenu > button {
    text-align: center;
    background-color: #15281F;
    font-size: 1em;
    font-weight: bold;
    color: #859186;
    padding: 10px;
    outline: none;
    border: none;
    transition: 0.4s; 
}

div#footerMenu > button:hover {
    cursor: pointer;
    color: white;
    background-color: #1B3127;
    border-radius: 12px;  
}

div#footerMenu > #Sair {
    text-align: left;
}

div#footerMenu > #Sair:hover {
    cursor: pointer;
    background-color: #3C2820;
    color: #BC2826;
    border-radius: 12px;
}
/*=============================================*/

main {
    grid-column: 2/3;
    grid-row: 1/2;
    background-color: #F8F9F5;
    padding: 35px;
    transition: ease-in-out;
}

/*=========== Configurações da divs que irão aparecer dinamicamente no site ===========*/
.divs {
    display: none;
}

.divs > h1 {
    font-size: 1.5em;
    text-align: left;
    padding: 5px;
}

.divs > h2 {
    font-size: 1em;
    color: #6B7D74;
    padding: 5px;
}
/*=============================================*/

/*=========== Configurações da div que vai aparecer o resumo geral no painel ===========*/
div#visaoGeral {
    display: flex;
    justify-content: space-between;
    flex-flow: row;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

div#visaoGeral > div {
    background-color: white;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    width: 25%;
    height: 125px;
    border: 1px solid rgba(128, 128, 128, 0.26);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.13);
    transition: 0.2s;
}

div#visaoGeral > div:hover {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.212);
}

div#visaoGeral > div > p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3d3d3d;
    font-weight: 500;
    font-size: 1em;
}

div#visaoGeral > div > h1 {
    color: rgba(0, 0, 0, 0.788);
}

div#visaoGeral > div > p > span {
    padding: 8px;
    border-radius: 12px;
}
/*=============================================*/

/*=========== Configurações da div que vai aparecer o resumo geral na vacinação ===========*/
div#resumoVacinação {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

div#resumoVacinação  > div {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    width: 33%;
    height: 90px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.26);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.123);
    transition: 0.2s;
}

div#resumoVacinação  > div:hover {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.212);
}

div#resumoVacinação > div > p > span {
    font-size: 1.4em;
    padding: 12px;
    border-radius: 12px;
}

section > h1 {
    color: rgba(0, 0, 0, 0.726);
    font-size: 1.7em
}

section > p {
    color: #3d3d3d;
    font-weight: 400px;
    font-size: 0.9em;
}
/*=============================================*/

/*=========== Configurações do formulário ===========*/
div#divForm {
    background-color: white;
    width: 50%;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.26);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.096);
}

div#divForm > h2 {
    font-size: 1.2em;
    padding: 10px 20px 0px 0px;
    margin-bottom: 6px;
}

div#divForm > p {
    color: #8A9891;
    font-size: 0.9em;
    padding: 0px 20px 0px 0px;
}

div#divForm > form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row  wrap;
    width: 100%;
    margin-top: 30px;
}

div#divForm > form > p {
    width: 48%;
}

div#divForm > form > p > input {
    width: 100%;
    font-size: 0.95em;
    background-color: #ECEFE7;
    height: 42px;
    border-radius: 12px;
    padding: 10px;
    padding-left: 15px;
    margin-bottom: 15px;
    border: 2px solid #27684a00;
    outline: none;
    transition: 0.4s;
}

div#divForm > form > p > input:focus {
    border: 2px solid #27684A;
}

div#divForm > form > p#add {
    width: 100%;
}

div#divForm > form > p > label {
    display: block;
    margin-bottom: 10px;
    padding-left: 2px;
    font-size: 0.9em;
    font-weight: 550;
}

div#divForm > form > p > button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background-color: #27684A;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    transition: 0.4s;
}

div#divForm > form > p > button:hover {
    cursor: pointer;
    background-color: #3C775C;
}
/*=============================================*/

/*=========== Configurações da mensagem do formulário ===========*/
div.mensagem {
    visibility: hidden;
    opacity: 0;
    width: 100%;
    max-width: 375px;
    min-width: fit-content;
    height: fit-content;
    position: sticky;
    transform: translateX(0px);
    margin-left: auto;
    bottom: 15px;
    z-index: 1;
    padding: 22px;
    line-height: 25px;
    border-radius: 12px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.205);
    transition: all 0.4s ease;
}

div.mensagem > h1 {
    font-size: 0.9em;
}

div.mensagem > p {
    font-size: 0.9em;
}

div.mensagemAtiva {
    visibility: visible;
    opacity: 1;
}

div.mensagemDesativa {
    visibility: hidden;
    opacity: 0;
    transform: translateX(75px);
}

.mensagem-branca {
    background-color: white;
    color: black;
    border: 1px solid rgba(128, 128, 128, 0.26);
}

.mensagem-vermelha {
    background-color: #DC2828;
    color: white;
    border: 1px solid #dc282834;
}
/*=============================================*/

/*=========== Configurações da imagen principal do site ===========*/
div#img {
    background-image: url(../imagens/vaca.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 192px;
    overflow: hidden;
    color: white;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.514);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    gap: 5px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.329);
    transition: 0.2s;
}

div#img:hover {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.432);
}

div#img > h1 {
    width: 50%;
    font-size: 1.5em;
}

div#img > p {
   width: 50%;
   line-height: 25px;
   color: #D6DAC5; 
}
/*=============================================*/

/*=========== Configurações das tabelas do site ===========*/
div.divtable {
    background-color: white;
    margin-top: 20px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.192);
}

div.divtable > h1{
    font-size: 1.2em;
    padding: 30px 20px 0px 20px;
    margin-bottom: 8px;
}

div.divtable > p {
    color: #8A9891;
    font-size: 0.9em;
    padding: 0px 20px 0px 20px;
}

div.divtable > div {
    width: 100%;
    overflow-x: auto;
    
}

table {
    background-color: white;
    width: 100%;
    min-width: 625px;
    margin-top: 15px;
    border-radius: 0px 0px 12px 12px;
    border-collapse: collapse;
    border: 1px solid #e3e4e2;
}

table > thead {
    background-color: #F6F7F4;
    color: #6A7C73;
}

table > thead > tr > th {
    padding: 10px;
    text-align: left;
    font-weight: lighter;
}

table > tbody > tr > td {
    border-bottom: 1px solid #e3e4e2;
    font-size: 0.9em;
    font-weight: 500;
    padding: 20px 10px 20px 10px;
    text-align: left;
}

table > tbody > tr:hover {
    background-color: #f6f7f470;
}
/*=============================================*/

/*=========== Configurações dos spans que aparecem nas tabelas ===========*/
.span-cinza {
    background-color: #EFF1EB;
    border: 1px solid #caccc7;
    padding: 6px;
    border-radius: 12px;
}

.span-verde {
    background-color: #DAECE1;
    color: #65BC85;
    border: 1px solid #65bc855e;
    padding: 6px;
    border-radius: 12px;
}

.span-vermelho {
    background-color: #F5DADA;
    color: #E04A4A;
    border: 1px solid #e04a4a59;
    padding: 6px;
    border-radius: 12px;
}

.span-laranja {
    background-color: #F9E8C9;
    border: 1px solid #fac665bd;
    padding: 6px;
    border-radius: 12px;   
}
/*=============================================*/
