/* header.css - Estilos do Cabeçalho Global do Aplicativo */

.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.header-btn:hover {
    color: var(--text-primary);
}

.header-btn .badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--danger);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.header-avatar:hover {
    border-color: var(--text-primary);
}

/* Ajustes Responsivos para acomodar o header global */
@media screen and (min-width: 768px) {
    .app-header {
        /* No desktop, o header global fica restrito à área de conteúdo, ao lado do side nav */
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }
}
