@import url(global.css);
@import url(index.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* HEADER */

.header {
    background-color: #114694;
    padding: 14px 40px;
    border-radius: 12px;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
}


.logo img {
    height: 45px;
    width: auto;
}


.menu {
    display: flex;
    list-style: none;
    gap: 35px;
    padding: 0;
    margin: 0;
    margin-right: auto;
}


.menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}


.menu li a:hover {
    color: #cecece;
}


.menu .icon {
    height: 20px;
    width: auto;
    object-fit: contain;
}


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


.profile .perfil {
    background-color: #ff6b35;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    box-sizing: border-box;
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

/* MAIN */

main {
    width: 88%;
    margin: 60px auto;
}

/* TITULO */

.titulo-pagina {
    color: #0f459e;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 50px;
}

/* BUSCA E BOTAO */

.area-acoes {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.campo-busca {
    width: 380px;
    height: 48px;

    border: 2px solid #0f459e;
    border-radius: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
}

.campo-busca input {
    border: none;
    outline: none;
    background: transparent;

    width: 100%;
    font-size: 16px;
}

.campo-busca img {
    width: 24px;
    cursor: pointer;
}

.btn-cadastrar {
    width: 240px;
    height: 48px;

    border: none;
    border-radius: 30px;

    background: #0f459e;

    color: white;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

/* CARD */

.container-usuarios {
    background: white;
    border-radius: 30px;
    padding: 35px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* CABEÇALHO DA TABELA */

.cabecalho-tabela {
    display: grid;

    grid-template-columns:
        80px 220px 220px 180px 120px 160px 160px;

    font-weight: bold;
    color: #0f459e;

    margin-bottom: 25px;
}

/* LINHAS */

.usuario {
    display: grid;

    grid-template-columns:
        80px 220px 220px 180px 120px 160px 160px;

    align-items: center;

    padding: 15px 0;
}

.usuario:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

/* FOTO */

.foto-usuario {
    width: 55px;
    height: 55px;
    object-fit: cover;
}

/* TEXTOS */

.nome,
.email,
.data {
    font-size: 15px;
    line-height: 1.4;
}

.permissao {
    color: #2f5ca7;
    font-size: 15px;
}

/* STATUS */

.status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status img {
    width: 16px;
}

/* AÇÕES */

.acoes {
    display: flex;
    gap: 25px;
}

.acao {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acao img {
    width: 32px;
    cursor: pointer;
}

.acao span {
    font-size: 13px;
    margin-top: 4px;
}

/* RESPONSIVO */

@media (max-width: 1200px) {

    .container-usuarios {
        overflow-x: auto;
    }

    .cabecalho-tabela,
    .usuario {
        min-width: 1140px;
    }
}

@media (max-width: 768px) {

    .menu {
        gap: 20px;
    }

    .menu a span {
        display: none;
    }

    .titulo-pagina {
        font-size: 28px;
    }

    .area-acoes {
        flex-direction: column;
        align-items: flex-start;
    }

    .campo-busca,
    .btn-cadastrar {
        width: 100%;
        max-width: 350px;
    }

    .container-usuarios {
        padding: 20px;
    }
}

.modal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;
}

.modal-conteudo {
    width: 650px;

    background: white;

    border-radius: 15px;

    padding: 30px;

    position: relative;
}

.modal-conteudo h2 {
    margin-bottom: 25px;
    color: #0f459e;
}

.modal-conteudo form {
    display: flex;
    flex-direction: column;
}

.modal-conteudo label {
    margin-top: 15px;
    margin-bottom: 5px;
}

.modal-conteudo input,
.modal-conteudo select {
    height: 45px;

    border: 1px solid #ccc;
    border-radius: 8px;

    padding: 10px;
}

.botoes-modal {
    display: flex;
    justify-content: flex-end;
    gap: 15px;

    margin-top: 30px;
}

.botoes-modal button {
    width: 120px;
    height: 45px;

    border: none;
    border-radius: 8px;

    cursor: pointer;
}

.botoes-modal button[type="submit"] {
    background: #0f459e;
    color: white;
}

#cancelar {
    background: #e5e5e5;
}

.fechar {
    position: absolute;

    right: 20px;
    top: 15px;

    font-size: 30px;

    cursor: pointer;
}