/* -------------------------------------------------------------
   FONTES
-------------------------------------------------------------- */
@font-face {
    font-family: 'Nexa Heavy';
    src: url('/assets/fonts/Nexa-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa ExtraLight';
    src: url('/assets/fonts/Nexa-ExtraLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* -------------------------------------------------------------
   BASE
-------------------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    padding: 20px;
}

/* -------------------------------------------------------------
   HEADER + MENU
-------------------------------------------------------------- */

/* Relógio dentro da user-area */
.header-clock {
    margin-top: 5px;
    font-family: 'Nexa Heavy', sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-align: right;
    width: 100%;
}

/* HEADER */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    background: url('/assets/images/header-bg.jpg') no-repeat center center;
    background-size: cover !important;

    color: #fff;

    padding: 14px 20px 6px; /* altura ajustada */

    width: 100%;
    box-sizing: border-box;

    gap: 5px 10px;
}

/* LOGO (oculto se não for usado) */
header .logo {
    flex: 1;
}
header .logo img {
    max-width: 140px;
    height: auto;
}

/* USER OPTIONS (Sair + Alterar Senha + Relógio) */
header .user-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

header .user-options .user-name {
    font-size: 12px;
    opacity: 0.9;
}

header .user-options a {
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    background-color: rgba(0, 40, 77, 0.55);
    border: 1px solid #fff;
    border-radius: 5px;
    transition: 0.25s;
}

header .user-options a:hover {
    background-color: #fff;
    color: #003366;
}

/* MENU (separadores das páginas) */
header .nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centrado */
    gap: 10px;

    margin-top: -8px; /* MOVE O MENU PARA CIMA */
}

header .nav a {
    display: inline-block;
    padding: 10px 22px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-family: 'Nexa Heavy', sans-serif;
    border-radius: 5px;
    font-size: 15px;
    transition: 0.25s;
}

header .nav a:hover {
    background-color: #03bef7;
}

header .nav a.active {
    background-color: #0056b3;
}

/* -------------------------------------------------------------
   TÍTULOS
-------------------------------------------------------------- */

h1 {
    color: #003366;
    font-family: 'Nexa Heavy', sans-serif;
    margin-top: 0;
}

/* -------------------------------------------------------------
   TABELAS
-------------------------------------------------------------- */

.table-container {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    border: 1px solid #888;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: #fff;
}

tr:hover {
    background-color: #e9f5ff;
}

/* -------------------------------------------------------------
   MODAL
-------------------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    border: 1px solid #888;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #000;
}

/* -------------------------------------------------------------
   BOTÕES GERAIS
-------------------------------------------------------------- */

button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.25s;
}

button:hover {
    background-color: #218838;
}

/* -------------------------------------------------------------
   ERROS
-------------------------------------------------------------- */
.error-message {
    color: red;
    font-size: 0.9em;
}

/* -------------------------------------------------------------
   ANIMAÇÕES
-------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
