/* HEADER FIXO NO TOPO */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #111827;        /* fundo escuro */
    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;
}

/* Logo / nome do sistema */
.brand {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

/* Info do usuário à direita */
.user-info {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.85;
    white-space: nowrap;
}

/* Botão hambúrguer */
.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;
}

/* Hambúrguer vira X quando aberto */
.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 por padrão) */
.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; /* abre vertical pra baixo */
}

.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: deixa espaço pro header fixo */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1rem 2rem; /* 4.5rem = espaço pro header */
}

/* DESKTOP (>= 769px): menu horizontal, sempre visível */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;          /* some o hambúrguer */
    }

    .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 (links/ações)
   =========================== */

/* Forçar que links com .btn sejam botões */
.table a.btn,
.table a.btn-primary,
.table a.btn-danger,
.table a.btn-warning,
a.btn,
a.btn-primary,
a.btn-danger,
a.btn-warning {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* Variações de cor */
.table a.btn-primary,
a.btn-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.table a.btn-primary:hover,
a.btn-primary:hover {
    background-color: #1d4ed8 !important;
}

.table a.btn-danger,
a.btn-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.table a.btn-danger:hover,
a.btn-danger:hover {
    background-color: #b91c1c !important;
}

.table a.btn-warning,
a.btn-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}

.table a.btn-warning:hover,
a.btn-warning:hover {
    background-color: #d97706 !important;
}

/* Versão compacta */
.btn-small {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
}