/* = fonte outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Importa a fonte Roboto do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');



:root {
  --primary: #25323e;
  --primary-light: #858284;
  --primary-dark: #39444e;
  --second: #505868;
  --second-light: #e2e2e8;
  --neutral: #f4f4f4;
  --text: #1a1a1a;
  --font-outfit: 'Outfit', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
}


/** estilo global start **/ 
*{
  border: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    display: flex;
    flex-direction: column;    
    font-family: var(--font-roboto);
    background-color: var(--second-light);
    margin: 0;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

.alert-success{
  border-left: 5px solid green;
  width: 700px;
  padding: 16px;
  border-radius: 3px;
  background-color: rgb(100, 139, 100);
  font-size: 14px;
}

.alert-danger{
  border-left: 5px solid red;
  width: 700px;
  max-width: 100%;
  font-size: 14px;
  background-color: rgb(184, 97, 97);
  padding: 16px;
  border-radius: 3px;
}

.alert-warning{
  border-left: 5px solid orange;
  width: 700px;
  max-width: 100%;
  padding: 16px;
  border-radius: 3px;
  background-color: rgb(178, 146, 87);
  font-size: 14px;
}


/* = login  */
.login{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 15px;
}

.login-container {
    background: var(--primary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: 350px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 400;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background:var(--second);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    color: var(--neutral);
    font-size: 1.3rem;
}

.btn:hover {
    background: var(--primary-light);

}

/*= login ======= */


.container{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 30px;
    width: 100%;
    padding: 30px 15px 30px 15px;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    background-color: var(--primary);
    height: 120px;
    padding: 35px 20px;
}

nav img{    
    max-width: 100%;
    height: 80px;
}

nav a i{
    margin-right: 20px;
    font-size: 24px;
    color: var(--neutral);
    padding: 2px;
}

.admin{
    display: flex;
    justify-content: end;
    align-items: center;
    max-width: 100%;
}

.admin button i{
    color: var(--primary);
    background-color: var(--second-light);
    font-size: 36px;
    cursor: pointer;
}

.top-table{
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.search{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search .input-field{
    border: 1px solid #000;
    width: 400px;
    height: 40px;
}

.search .input-field::placeholder{
    padding: 5px; 
    font-size: 16px;   
}


.search input{
    height: 35px;
    width: 300px;
    border-radius: 4px;
}

.btn-cad, .btn-voltar{
    width: 200px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    background-color: var(--primary);
    color: #fff;
    font-size: 16px;
    text-decoration: none;  
}


/*= tabela ======= */
table{
    width: 98%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 5px 5px 10px #000;
    font-weight: 600;
    margin-bottom: 50px;
}

thead tr{
    background-color: var(--primary);
    color: white;
}

th,td{
    padding: 10px;
    text-align: center;
    border: 1px solid #1a1a1a;
    font-size: 20px;
}

td{
    font-size: 24px;
}

th{
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.1em;
}

tr{
    font-weight: 400;
    color: var(--primary);
}

tbody tr:hover{
    background-color: var(--second-light);
}

td i{
    color: var(--primary);
    padding: 5px;
    font-size: 22px;
}

/* = tabela resposiva */

/*----------------responsive--------*/

@media (max-width: 768px) {


    .table{
        background-color: transparent;
        box-shadow: none;
    }    

    .table thead{
        display: none;
    }

    .table, .table tbody, .table tr, .table td{
        display: block;
        width: 100%;
    }

    .table tr{
        margin-bottom: 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.9);
    }
    
    .table tbody tr td{
        text-align: right;
        padding-left: 50%;
        position: relative;
        background-color: #fff;
    }

    .table td:before{
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 5px;
        font-weight: 900;
        font-size: 14px;
        text-align: left;
        color: var(--primary);
    }
}

/* Modal */
.modal {
    display: none; /* escondido por padrão */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
    padding: 10px;
}

/* Conteúdo do modal */
.modal-content {
    background: #fff;
    margin: 100px auto;
    padding: 20px;
    border-radius: 12px;
    width: 500px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    animation: aparecer 0.3s ease;
}

/* Animação suave */
@keyframes aparecer {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Botão fechar */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary);
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 20px;
}

.btn-submit, .btn-cancel {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin: 5px;
}
.btn-submit:hover {
    background: var(--primary);
}


/* = data e hora */
/* Container do relógio */
.clock {
    display: flex;
    align-items: center;
    gap: 20px; /* espaço entre hora e coluna da direita */
    height: 120px;
}

/* Hora (esquerda) */
#time {
    font-size: 36px;
    color: var(--neutral);
}

/* Coluna direita com data em cima e local embaixo */
.date-location {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.8;
    gap: 5px;
}

#date {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral);
}

#location {
    font-size: 14px;
    color: var(--neutral);
    text-transform: uppercase;
}


@media screen and (max-width:468px) {

    nav{
        gap: 16px;
        padding: 8px 0px 8px 8px;
    }


    nav img{
        width: 120px;
        height: 60px;
    }

    nav a i, nav .admin button i{
        font-size: 20px;
    }

    .top-table{
        flex-direction: column;
        align-items: flex-start;
    }

    .top-table .btns{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search .input-field{
        width: 280px;
        height: 40px;
    }

    .alert-success, .alert-danger,.alert-warning {
        width: 200px;
        font-size: 0.6rem;    
    }   
 

    /* = data e hora */
    /* Container do relógio */
    .clock {
        display: flex;
        align-items: center;
        gap: 15px; /* espaço entre hora e coluna da direita */
        height: 80px;
    }

    /* Hora (esquerda) */
    #time {
        font-size: 16px;
        color: var(--neutral);
    }

    /* Coluna direita com data em cima e local embaixo */
    .date-location {
        display: flex;
        flex-direction: column;
        text-align: left;
        line-height: 1.1;
        gap: 5px;
    }

    #date {
        font-size: 10px;
        font-weight: 500;
        color: var(--neutral);
    }

    #location {
        font-size: 6px;
        color: var(--neutral);
        text-transform: uppercase;
    }
    
}


/* = footer */
footer p{
    margin-left:20px;
    font-family: var(--font-outfit);
}

footer p span{
    color:#25323e;
    font-weight:700;
    font-family: var(--font-outfit);
}


