/* 
Importação de fontes 
- poppins
- roboto

*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:wght@100;400;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    color: #000;
}

/* 
------------ Cabeçalho------------ 
*/


#logo{
    /* filter: blur(10px); */
    max-width: 100px;
}


body header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px 70px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #F5F5F5;
}

body header h1 {
    font-weight: 300;
    font-size: 25px;
}

body header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 50px;
}

body header nav li {
    list-style: none;
}

body header nav li:hover {
    opacity: 10%;
}

body main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 0 70px;
    flex: 1;
    
}

/* 
------------Entrada de dados------------ 
*/

body main .container-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
}

body main .container-inputs .options button {
    text-decoration: none; 
    outline: none;  
    border: none;
    background-color: transparent;
    cursor: pointer;
    
}

body main .container-inputs .options button img {
    width: 18px;
    height: 18px;
}

.model, #date-sale {
    padding: 5px;
    border: none;
    border-radius: 10px;
    background-color: #f5f5f5;
    margin-right: 10px;
}

.model, #date-sale:focus  {
    outline: none;
    box-shadow: none; 
}

.model {
    padding-right: 90px;
}

#submit {
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    background-color: #000;
    margin-right: 10px;
    color: #F5F5F5;
    font-weight: bold;
    cursor: pointer;
}

#submit:hover {
    transition: 0.5s;
    background-color: #031e95;
}

.text-warning {
    color: #BDC3C7;
    font-weight: 200;
}

/* 
------------Tabela------------ 
*/


body main .container-results {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
    -webkit-box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
    -moz-box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
}

body main .container-results table {
    width: 100%;
}

body main .container-results table td {
    text-align: center;
    padding: 15px 0;
    font-weight: 300;
    border-bottom: 1px solid #BDC3C7;
}

body main .container-results table .main-columns-top {
    border-top: 2px solid #181818;
    border-right: 2px solid #181818;
    border-left: 2px solid #181818;
}

body main .container-results table .main-columns-bottom {
    border-bottom: 2px solid #181818;
}

body main .container-results table th {
    padding: 5px 0;
    background-color: #BDC3C7;
}

body main .container-results table tr:nth-child(odd) {
    background-color: #FFFF; 
}

body main .container-results table tr:nth-child(even) {
    background-color: #F5F5F5; /* Cor de fundo para as linhas pares */
}

body main .container-results table .main-columns {
    font-weight: 500;
    border-right: 2px solid #181818;
    border-left: 2px solid #181818;
}

.buttonSchedule {
    padding: 5px 20px;
    border: none;
    border-radius: 10px;
    background-color: #2846d2;
    color: #F5F5F5;
    font-weight: bold;
    cursor: pointer;
}

/* 
------------footer------------ 
*/

footer {
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #181818;
    padding: 10px;
    margin-top: 25px;
    position: fixed;
    bottom: 0px;
}

footer span {
    color: #FFFF;
    font-weight: 300;
}

/* 
------------Mobile------------ 
*/

@media (max-width: 745px) {
    
    body main {
        max-width: 100vw;
        margin: 0;
        padding: 0 !important;
    }

    body header {
        justify-content: center;
        gap: 20px;
    }

    .container-inputs {
        flex-direction: column-reverse;
    }

    .container-inputs div {
        flex-direction: column;
    }

    .container-inputs div select, #date-sale, button {
        width: 100%;
        margin-top: 10px;
    }

    body main .container-results table th {
        font-weight: 200;
        padding: 5px;
    }

    #submit, #model-select {
        border-radius: 0;
        width: 100%;
        margin: 0;
    }

    .buttonSchedule {
        max-width: 95%;
    }


    /*Tabela*/

/* Permite scroll horizontal apenas na área da tabela */
body main .container-results {
  display: block;               /* muda de flex para block */
  width: 100%;
  overflow-x: auto;             /* 👈 ativa scroll horizontal */
  -webkit-overflow-scrolling: touch; /* rolagem suave em iOS */
  box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
  -webkit-box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
  -moz-box-shadow: -2px 6px 27px 7px rgba(0,0,0,0.33);
}

/* Garante que a tabela tenha largura mínima maior que a tela */
body main .container-results table {
  width: 100%;
  min-width: 600px; /* 👈 ajuste conforme a quantidade de colunas */
  border-collapse: collapse;
}

/* Evita quebra de conteúdo nas células */
body main .container-results table td,
body main .container-results table th {
  white-space: nowrap;
}

}



