/* =========================
   RESET E BASE
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Century Gothic", Arial, sans-serif;
    font-size: 14px;
    background-color: #f4f7f9;
    color: #1f2d3d;
}

/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.2s ease;
}

a:hover {
    color: #12a4c0;
}

/* =========================
   MENU PRINCIPAL
========================= */

#menu {
    width: 100%;
    min-height: 60px;
    background: linear-gradient(90deg, #0a6c80, #0f8fa8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
/* =========================
   BUTTON GLOBAL
========================= */

button {
    background: linear-gradient(90deg, #0a6c80, #0f8fa8);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Hover */
button:hover {
    background: linear-gradient(90deg, #095c6d, #0c7c93);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* Clique */
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Desabilitado */
button:disabled {
    background: #bfc9cf;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsivo */
@media (max-width: 768px) {
    button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

#empresa {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.botaomenu {
    display: flex;
    align-items: center;
}

.botaomenu img {
    height: 40px;
    filter: brightness(0) invert(1);
    cursor: pointer;
    transition: 0.2s ease;
}

.botaomenu img:hover {
    transform: scale(1.1);
}

#sairmenu {
    cursor: pointer;
    font-size: 13px;
}

/* =========================
   SUBMENU
========================= */

#submenu {
    width: 100%;
    background-color: #083f4a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#submenu div {
    padding: 10px 15px;
    cursor: pointer;
    color: #fff;
    transition: 0.2s ease;
}

#submenu div:hover {
    background-color: #ffffff;
    color: #083f4a;
    border-radius: 6px;
}

/* =========================
   TABELAS
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.tabelaPadrao {
    width: 90%;
    margin: 20px auto;
}

table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    color: #1f2d3d;
}

table tr:hover td {
    background-color: #e6f7fb;
}

.cabecalho td {
    background-color: #0f8fa8;
    color: #fff;
    font-weight: bold;
}

/* =========================
   ICONES
========================= */

#listano img {
    width: 28px;
}

.excluir,
.editar,
.chave {
    cursor: pointer;
    transition: 0.2s ease;
}

.excluir:hover {
    filter: brightness(0.7);
}

.editar:hover {
    filter: brightness(1.2);
}

.chave {
    filter: grayscale(100%);
}

.chave:hover {
    filter: grayscale(0%);
}

/* =========================
   POPUP
========================= */

#cortina {
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

#popup {
    width: 90%;
    max-width: 450px;
    padding: 30px;
    background-color: #ffffff;
    z-index: 3;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
   UTILIDADES
========================= */

.abreNo {
    cursor: pointer;
    transition: 0.2s ease;
}

.abreNo:hover {
    color: #0f8fa8;
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 768px) {

    #menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    #empresa {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .tabelaPadrao {
        width: 100%;
    }

    table td {
        font-size: 12px;
        padding: 8px;
    }

    #submenu {
        flex-direction: column;
        align-items: center;
        color: #fff;
    }
}