/* CSS apenas para sidebar/menu em páginas estáticas */
/* Não inclui estilos globais de body/html que interferem no scroll */

:root {
    --bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --header-bg: #002E5D;
}

/* Header styles */
header {
    padding: 0.55rem 1.25rem 0.35rem;
    border-bottom: 1px solid #001a3d;
    background: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

/* Logo completo invertido - ajusta-se ao tamanho da barra */
.brand-logo-full {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Ajuste para mobile - logo um pouco menor */
@media (max-width: 767px) {
    .brand-logo-full {
        height: 28px;
    }
}

/* Botão do menu (☰) */
.menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 0.18rem 0.65rem 0.22rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* SIDEBAR */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 10;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    padding: 1rem;
    z-index: 11;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    box-shadow: none;
    border: none;
}

.sidebar.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-section-title {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sidebar-separator {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 0.5rem 0 1rem;
    width: 100%;
}

.sidebar-fixed-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.25rem;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
}

.sidebar-fixed-item:hover {
    background: #f3f4f6;
}

.sidebar-plan-text {
    display: block;
    width: 100%;
    padding: 0.5rem 0.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid var(--border-soft);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.chat-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Avatar do usuário no header */
.header-avatar-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.header-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #f97316;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão de login no header */
.header-login-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #ffffff;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.header-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}