@charset "utf-8";
/* =====================
   HEADER FIXO SUPERIOR
   ===================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height, 60px);
    width: 100%;
    background-color: var(--header-bg, #fff);
    border-bottom: 1px solid var(--header-borda, #ddd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Botão de menu lateral */
.toggle-sidebar-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--header-icone, #333);
    cursor: pointer;
    margin-right: 1rem;
    z-index: 99999999999;
}

.toggle-sidebar-btn:hover {
    color: var(--header-icone-hover, #000);
}

#empresa-logo{
    position:relative;
    z-index: 99999999999; 
}
/* Logo da empresa */
#empresa-logo img {
    height: 40px;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.3rem;
    background-color: var(--logo-bg, transparent);
    padding: 0.2rem;    
   
}

/* Título */
header h4, header h3 {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    color: var(--header-titulo, #444);
    margin: 0;
}

/* Container do usuário */
.user-conteiner {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}

#user-image img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--user-borda, #ccc);
    transition: transform 0.2s ease;
}

#user-image:hover img {
    transform: scale(1.05);
}

/* Menu popup do usuário */
.popup-content {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--popup-bg, #fff);
    color: var(--popup-text, #333);
    border: 1px solid var(--popup-borda, #ddd);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 0.7rem;
    min-width: 320px;
    display: none;
    flex-direction: column;
    justify-content:center;
    gap: 0.5rem;
    animation: fadeIn 0.2s ease-in-out;
}

/* Conteúdo do popup */
.popup-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.popup-content h3 {
    text-align: center;
    margin: 0.5rem 0 0.2rem;
    font-size: 1.1rem;
    color: var(--popup-titulo, #222);
}

.popup-content p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--popup-subtitulo, #666);
}

/* Formulário de tema */
#theme-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

#theme-form input[type="radio"] {
    display: none;
}

#theme-form label {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--icone-tema, #666);
    transition: color 0.3s ease;
}

#theme-form input:checked + label {
    color: var(--icone-tema-ativo, #000);
}

/* Links do menu popup */
.popup-content a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--popup-link, #333);
    padding: 0.4rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.popup-content a:hover {
    background: var(--popup-link-hover, #f0f0f0);
}

.popup-content a i {
    width: 20px;
    text-align: center;
}

/* Animação */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 768px) {
    header h4 {
        display: none;
    }

    .popup-content {
        right: -20px;
    }
}
