/* RESET básico */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
}

/* HEADER FIXO NO TOPO */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #111827;
    color: #f9fafb;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

/* Marca do sistema */
.brand {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

/* Informação do usuário (lado direito) */
.user-info {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.85;
    white-space: nowrap;
}

/* Botão hambúrguer (sempre visível no mobile) */
.nav-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background-color: #f9fafb;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animação simples do hambúrguer -> X */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* MENU EM CASCATA (MOBILE) */
.nav-menu {
    position: absolute;
    top: 56px;  /* logo abaixo do header */
    left: 0;
    right: 0;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.nav-menu.open {
    max-height: 500px; /* suficiente para as opções aparecerem; ajuste se precisar */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: #1f2937;
}

/* CONTEÚDO: espaço para não ficar atrás do header */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1rem 2rem; /* 4.5rem pra compensar o header fixo */
}

/* Se você já tinha .cards, .card, .table etc, pode manter;
   aqui só um pequeno ajuste / reforço */
.cards {
    display: grid;
    gap: 1rem;
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* TABELA padrão */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    font-size: 0.9rem;
}

.table thead {
    background: #111827;
    color: #e5e7eb;
}

.table th,
.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* RESPONSIVO: no desktop, menu fica flex na barra e não em cascata */
@media (min-width: 769px) {
    /* No desktop, o menu fica sempre aberto e horizontal */
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .nav-menu ul {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-menu a {
        padding: 0.4rem 0.75rem;
        border-radius: 999px;
        font-size: 0.9rem;
    }

    .nav-menu a:hover {
        background: #1f2937;
    }

    .content {
        padding: 5rem 1.5rem 2.5rem;
    }
}

/* Botões padrão do sistema */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: #2563eb; /* azul */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-danger {
    background-color: #dc2626; /* vermelho */
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-warning {
    background-color: #f59e0b; /* amarelo */
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.8rem;
}