.btnHeaderIcon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e9ecef;
    color: var(--text-primary, #212529);
    opacity: 0.78;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    min-width: 44px;
    min-height: 44px;

    &:hover:not(.disabled) {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: var(--primary, #27132e);
        text-decoration: none;
    }

    &.primary {
        background: linear-gradient(135deg, var(--primary, #27132e) 0%, var(--primary-dark, #1976b2) 100%);
        border: none;
        color: white;

        &:hover:not(.disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(39, 19, 46, 0.4);
            color: white;
        }
    }

    &.disabled,
    &:disabled {
        cursor: not-allowed;
        opacity: 0.6;

        &:hover {
            background: white;
            border-color: #e9ecef;
            color: var(--text-primary, #212529);
            opacity: 0.72;
            transform: none;
            box-shadow: none;
        }
    }

    &:focus-visible {
        outline: 2px solid var(--color-info, var(--brand-primary));
        outline-offset: 2px;
    }
}

/* Tema escuro: alinhar aos tokens do layout (evita “cartões” claros no header da página) */
:global(.dark) {
    .btnHeaderIcon:not(.primary) {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.9);

        &:hover:not(.disabled):not(:disabled) {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.22);
            color: #fff;
        }
    }

    .btnHeaderIcon.disabled,
    .btnHeaderIcon:disabled {
        &:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.14);
            color: rgba(255, 255, 255, 0.55);
        }
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .btnHeaderIcon {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}
